in reply to Understanding crypt()

if your system does not support crypt, then you can always use Crypt::UnixCrypt