
Put in a password, get a properly hashed version back using PHP's password_hash() with PASSWORD_DEFAULT (currently bcrypt).
This is the modern, correct way to store passwords in a database. Unlike MD5, these hashes are salted and use a slow algorithm designed to resist brute-force attacks. Use password_verify() on the other end to check passwords against these hashes.
©2026 Larry Swank, unless someone else owns it. Then it's theirs, obviously.
Don't betray them by becoming familiar