Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 914 Bytes

2019-09-11:Your Node.js authentication tutorial is (probably) wrong.md

File metadata and controls

28 lines (22 loc) · 914 Bytes

Your Node.js authentication tutorial is (probably) wrong

micaksica Aug 3, 2017

隨便紀錄吧,這篇先不花時間深入
也沒有太多實作內容能參考

Mistake one: credential storage

OWASP 建議 密碼應該

  • 加 unique salt、加密
  • Argon2 是最好的選擇

Mistake two: password reset

Mistake three: API tokens

API 要做防護 例如

  • JWT

Mistake four: rate limiting

避免「字點暴力破解」密碼