07 Dec '12, 1am

String#crypt - Beware: default system crypt functionality silently ignores characters beyond the 8th #ruby

From the man page: If salt is a character string starting with the characters “$id$” followed by a string terminated by “$”: $id$salt$encrypted then instead of using the DES machine, id identifies the encryption method used and this then determines how the rest of the password string is interpreted.

Full article: http://apidock.com/ruby/String/crypt#1371-Beware-default-...

Tweets