4 ms·
Please don't use hashes for this. Use bcrypt (http://en.wikipedia.org/wiki/Bcrypt http://en.wikipedia.org/wiki/Bcrypt). Hashes are designed to be easy to comput
by spp 15y ago
Please don't use hashes for this. Use bcrypt (http://en.wikipedia.org/wiki/Bcrypt http://en.wikipedia.org/wiki/Bcrypt). Hashes are designed to be easy to compute, bcrypt is adaptive in the sense that it can be made harder to compute over time, so it's a lot harder to brute force. It also adds a salt by default.
- huxley 15y agoI know I'm being a bit pedantic here, but both bcrypt and SHA1 are cryptographic hash functions. So please, do use hashes for this, just realize that some hashes will be far more secure (like bcrypt) than others (like SHA1 or, FSM-forbid, MD5).