How can I hash passwords in postgresql?
I need to hash some passwords with salt on postgresql, and I haven't been able to find any relevant documentation on how to get that done. So how can I hash passwords (with some salts) in postgresql? It's been a while since I asked this question, and I'm much more familiar with the cryptographic theory now, so here is the more modern approach: Reasoning Don't use md5. Don't use a single cycle of sha-family quick hashes. Quick hashes help attackers, so you don't want that. Use a resource-intensive hash, like bcrypt, instead. Bcrypt is time tested and scales up to be future-proof-able. Don't