Ruby Programming/Reference/Objects/String

String Class

Methods:Edit

crypt(salt). Returns an encoded string using crypt(3). salt is a string with minimal length 2. If salt starts with "$1$", MD5 encryption is used, based on up to eight characters following "$1$". Otherwise, DES is used, based on the first two characters of salt.

Last modified on 20 July 2009, at 18:41