In Linux I can create a SHA1 password hash using
sha1pass mypassword. Is there a similar command line tool which lets me create
sha512 hashes? Same question for
Yes, you're looking for
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
On any of the Red Hat distros such as Fedora, CentOS, or RHEL the command
To work around this you can use the following Python or Perl one-liners to generate SHA-512 passwords. Take note that these are salted:
In these examples the password is the string "password" and the salt is "saltsalt". Both examples are using $6$ which denotes that you want crypt to use SHA-512.