Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
API Authentication with Tokens (miguelgrinberg.com)
4 points by miguelgrinberg on Sept 29, 2022 | hide | past | favorite | 1 comment


> If you feel confident that you have good security practices on the server that hosts your database, then encrypting the tokens might be an unnecessary complication.

This is very bad advice. You should always hash, not encrypt, tokens. Your server "security" be damned.

Tokens are essentially passwords, and should be treated as such.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: