From: Gabriele Marrone Date: 2006-11-08T07:48:19+09:00 Subject: Re: Linux authentification check? Il giorno 07/nov/06, alle ore 23:40, Roman Hausner ha scritto: > As it turns out, it already would be sufficient if I could do the same > that the "crypt" function achieves under perl. > Perl does have this as part of the core language -- how can I access > this function in ruby? Ruby does too, as a String method: ----------------------------------------------------------- String#crypt str.crypt(other_str) => new_str ------------------------------------------------------------------------ Applies a one-way cryptographic hash to str by invoking the standard library function crypt. The argument is the salt string, which should be two characters long, each character drawn from [a-zA-Z0-9./].