aptitude --help
aptitude install adduser-ng
man adduser-ng
man shadow
man pwconv
man pwunconv
this is what they have done ages ago. why reinventing the wheel?
encrypted password using either blowfish or twofish
Crypt::Blowfish - Perl Blowfish encryption module - search.cpan.org
Twofish
security paranoid? try RSA 2-factor 4096 bit encryption

cracklib
gnupg
openssl
heimdal