Generate Unix crypt(3) password hashes - md5crypt, sha256crypt and sha512crypt - as used in /etc/shadow. Output matches openssl passwd. Runs in your browser.
Generate Unix crypt(3) password hashes - md5crypt, sha256crypt and sha512crypt - as used in /etc/shadow. Output matches openssl passwd. Runs in your browser.
crypt(3) is the family of password hash formats used in the Unix /etc/shadow file and by tools like openssl passwd. Each hash starts with a magic prefix that names the scheme: $1$ for md5crypt, $5$ for sha256crypt and $6$ for sha512crypt, followed by the salt and the encoded digest. This tool produces those hashes from a password and salt, so you can seed a shadow file, a Dockerfile user or an Ansible playbook.
Input:
password: Hello world! salt: saltstring scheme: sha512
Output:
$6$saltstring$svn8UoSVapNtMuq1ukKS4tPQd8iKwSMHWjl/O817G3uBnIFNjnQJuesI68u4OTLiBFdcbYEdFCoEOfaS35inz1
Which scheme should I use?
sha512crypt ($6$) is the modern default on most Linux systems. sha256crypt ($5$) is a lighter variant, and md5crypt ($1$) is legacy and weak, kept for old systems.
Does the output match the real crypt?
Yes. It is verified byte-for-byte against openssl passwd, so the hashes work directly in /etc/shadow and similar files.
Can I set the cost?
For sha256crypt and sha512crypt you can change the rounds (default 5000); higher is slower to crack. md5crypt has a fixed iteration count.
Is my password uploaded?
No. Hashing runs entirely in your browser.