crypt(3) password hashing?

Brian Candler B.Candler@REDACTED
Thu Jan 14 12:02:50 CET 2010


Does erlang have an equivalent to crypt(3), to calculate password hashes
like these?

>> "test".crypt("aa")
=> "aaqPiZY5xR5l."
>> "test".crypt("$1$aaaaaaaa")
=> "$1$aaaaaaaa$lWxWtPmiNjS/cwJnGm6fe0"

I can't find it in the crypto app. I also googled around; I found the same
question asked at
http://forums.pragprog.com/forums/27/topics/391
but unfortunately no direct answer was given.

Thanks,

Brian.


More information about the erlang-questions mailing list