To generate linux password hashes that can be use in /etc/shadow, this is the command you can use:
openssl passwd -1 -salt salt_goes_here
Just be carefull, I think there is a maximum length to the salt (8 chars)
Quick example:
$ openssl passwd -1 -salt 12345678
Password:
$1$12345678$V2nJT38Nt2Fq9x3AiEZG51
-- Some quick links:
- www.madboa.com/geek/openssl/#passwd-md5
- www.linuxjournal.com/article/8958