Module | Crypt |
In: |
lib/facets/more/crypt.rb
|
ITOA64 | = | "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" |
an pure ruby version of crypt(3), a salted one-way hashing of a password
supported hashing algorithms are: md5, sha1, sha256, sha384, sha512, rmd160
only the md5 hashing algorithm is standard and compatible with crypt(3), the others are not standard.
automatically generate a 8-bytes salt if nil
output a length hashed and salted string with size of magic.size + salt.size + 23