How to create SHA512 password hashes on command line
In Linux I can create a SHA1 password hash using
sha1pass mypassword. Is there a similar command line tool which lets me create
sha512hashes? Same question for
Don't you mean `sha1sum`?
@Tichodroma no, there is actually a `sha1pass` command, part of the syslinux-common package on Debian.
Yes, you're looking for
mkpasswd, which (at least on Debian) is part of the
whoispackage. Don't ask why...
[email protected]:~$ mkpasswd -m help Available methods: des standard 56 bit DES-based crypt(3) md5 MD5 sha-256 SHA-256 sha-512 SHA-512
Unfortunately, my version at least doesn't do bcrypt. If your C library does, it should (and the manpage gives a -R option to set the strength). -R also works on sha-512, but I'm not sure if its PBKDF-2 or not.
If you need to generate bcrypt passwords, you can do it fairly simply with the