From: Joel VanderWerf Date: 2006-11-08T07:47:15+09:00 Subject: Re: Linux authentification check? Roman Hausner wrote: > 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? $ ri String#crypt | cat ----------------------------------------------------------- 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./]. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407