On Thu, 2008-01-03 at 12:35 -0700, Rich Megginson wrote:
You might try the crypt format. On most linux platforms, system
crypt
uses MD5.
This will work with hashes from /etc/shadow that start '$1$'. It should
also work with the old-style DES hashes that you shouldn't be using
anymore. For example, if you had a shadow line that read:
username:$1$CxLcjTxD$IRuWOqGVHrXJkJsRdPYqq.:12345:0:99999:7:::
Then the userpassword value would be '{crypt}$1$CxLcjTxD
$IRuWOqGVHrXJkJsRdPYqq.'