mkpasswd
$ mkpasswd -m help
Available methods:
yescrypt Yescrypt
gost-yescrypt GOST Yescrypt
scrypt scrypt
bcrypt bcrypt
bcrypt-a bcrypt (obsolete $2a$ version)
sha512crypt SHA-512
sha256crypt SHA-256
sunmd5 SunMD5
md5crypt MD5
bsdicrypt BSDI extended DES-based crypt(3)
descrypt standard 56 bit DES-based crypt(3)
nt NT-Hash
des
mkpasswd -m descrypt password
e1bWQa5GoloMQ
md5
mkpasswd -m MD5 password
$1$fAcYN3lp$G5vKEy/CjLHPJW7VW5V0B.
# with own salt
mkpasswd -m MD5 -S world123 password
$1$world123$eSqHji9dVE7Qvhx0dCjVO0
sha-256
mkpasswd -m SHA-256 password
$5$qRu5Ts5KskGEir6V$EDnUHLRe/upnAi2PEGt0GsLEjcsb.SaGkLvDMHnPZyB
sha-512
mkpasswd -m SHA-512 password
$6$fkCLJr7i2QUTOtYZ$3aAl5G/G5jdK89Z9qKMiKRHccN.O109Ih3DQN2SXtTnKaxUG8mPdOOvFL3XfwCex74SnYHOESozTXaXY3UQXV.
bcrypt
mkpasswd -m bcrypt password
$2b$05$JkEuNz6mYVNjwobM2zCj1.za8MreWL.iZWZsXpeJngOXcS50XFI92
Related:
Generate random values
Hashcat hashes examples