by ezekg · 5y ago · 0 comments
If there were one login system/site in the whole world, you'd still want to hash/encrypt them.
I mean hashing is one of the easiest things to do to add a layer of security, so even if the db is encrypted, why not? Maybe I'm missing your point.
Totally agree with your main point of "tokens, like passwords, should be kept discrete."
Passwords are secrets.
Ed25519 private keys are secrets.
We hash passwords.
Thus we must hash tokens.
Should we therefore hash our Ed25519 private keys?
No, but I'm of the opinion that you should encrypt private keys before storing them in a database.