From: Brian Candler Date: 2009-02-23T22:25:57+09:00 Subject: Re: encryption using ruby Please see my answer at http://www.ruby-forum.com/topic/178721 where exactly the same question was answered, but the OP didn't bother to reply. Here you have posted a bit more code. This shows that no decryption is taking place at all; rather, the Perl is trying all possible PINs until it stumbles on the correct one (AKA a "brute-force attack") Anyway, you just need to look at either the documentation for the perl Crypt::Encrypt function you are using to find out what sort of hashing it is doing, or probably easier, look at the Perl source and re-implement in Ruby. -- Posted via http://www.ruby-forum.com/.