DEV Community

Discussion on: Things I think I know about Cryptography

Collapse
 
ctigeek profile image
Steven Swenson

If you're not sure which hash to use, and it's for a security-related reason, use SHA-2 at a length appropriate for your use.

Unless it's for password hashing, in which case use bcrypt with a work factor of at least 10.
en.wikipedia.org/wiki/Bcrypt