|
Have you read the OpenBSD man page for encrypt(1)? The reason I ask is because it's doing more than just a one-way hashing algorithm. Read the man page to see why it's not that simple.
For FreeBSD you would need to also use the salt when md5'ing the password, but you have to remember it's crypt MD5 and not simply digest MD5. You won't get that behavior by using md5sum, you need to use something like the PERL module Crypt::PasswdMD5 or a call to the system function crypt(3) using the correct magic string to indicate hash type.
Last edited by chort; 09-05-2004 at 02:01 AM.
|