2 ms·
I like the way Django stores passwords: pbkdf2_sha256$260000$theHashDataGoesHere The algorithm comes first, then the number of iterations, then finally th
by simonw 5y ago
I like the way Django stores passwords:
pbkdf2_sha256$260000$theHashDataGoesHere
The algorithm comes first, then the number of iterations, then finally the hash value.
This makes it possible to increase iterations or even switch algorithms upgrade and re-hash existing passwords automatically later on when users sign in. Django handles this for you.
Another good reason to use a mature, extensively tested mechanism for authentication rather than rolling your own from scratch.