Performs the UNIX crypt(3) algorithm in Ruby using DES, MD5, SHA256 or SHA512