cryptography

My suggestion would be to use EXACTLY the same libraries on both ends - I would first use ruby-mcrypt before I went any further

http://raa.ruby-lang.org/project/mcrypt/

John W Higgins
wishdev@gmail.com