Thread: perl crypt()
View Single Post
Old 11-10-2003, 10:10 AM   #3 (permalink)
joe_bruin
LOAD "*",8,1
 
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
joe_bruin is on a distinguished road
i would imagine it's a straightforward passthrough to the system crypt(3) function. in classic mode, crypt(3) produces a salted DES 'hash'. most bsd systems (and i bet some linux), allow you to select a more powerful algorithm (md5, blowfish, etc) by special variations of the salt value.

if you want strong hashes, don't use crypt (unless you're using it in extended mode and selecting a stronger algorithm). use md5, sha, or ripemd instead.
joe_bruin is offline   Reply With Quote