From: Brian Candler Date: 2008-12-17T00:19:54+09:00 Subject: Re: Ruby encryption Archana Thota wrote: > Basically, I don't know how to use encryption > algorithms in ruby. I couldn't even find what equivalent methods are in > ruby for the above php code which is actually being used to send info to > a third party app. > > Can any please suggest me a method to achieve the same encryption & > decryption algorithms in ruby for those written in php above? You seem to have most of the basics there. Insert debugging to find out where your code diverges from the PHP. I don't use PHP, and don't have it installed, so I can't do this for you. Only you can explain why you included SHA1 hashing in the Ruby version, where the original PHP appears not to. My guess is that you're using the wrong encryption key. -- Posted via http://www.ruby-forum.com/.