2 ms·
So would this be a decent way to store the resulting hash? [method]$[salt]$[hash] sha256$fi93heyf789s2hfk$j2398fdperoc983m4n58djs20 Also, I like how Django's
by pbreit 14y ago
So would this be a decent way to store the resulting hash?
[method]$[salt]$[hash]
sha256$fi93heyf789s2hfk$j2398fdperoc983m4n58djs20
Also, I like how Django's authentication can cycle through a list of schemes making it easy to switch or accommodate legacy accounts.
- pjscott 14y agoThe best way to store a password hash -- and I apologize for belaboring this point, but it bears repeating -- is to take whatever string you get from bcrypt or scrypt, and store it somewhere reliable with quick lookups, like a database with regular backups and replication. There are libraries that handle all the details of hashing a password, adding salt, making the computation too slow to easily brute force, and putting all this behind a trivial-to-use API. Use them!
- pbreit 14y agoWell, the article mostly discusses non-bcrypt solutions so the question seems reasonable. I suspect bcrypt is in limited use because it's not built-in to any of the development environments.