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
NOTE: The command
Both of these methods are superior to using
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.
Run this command:
then enter the word you want hashed.
To expand on @slm's workarounds above, if you're worried about someone getting a hold of your bash history and seeing the plain text password, you can insert