From: Jeremy Hinegardner Date: 2007-09-03T07:19:25+09:00 Subject: Re: 2 Way encryption for password On Sun, Sep 02, 2007 at 07:33:51PM +0900, Gabriel Dragffy wrote: > Hi > > I'm creating a password database (a dangerous thing to do, I know!) > normally I'd hash the passwords for storage in the DB, but in this > case I need to be able to also reverse them to their original state. > I'm familiar with the digest module, but of course it isn't of use > here. I didn't see anything obvious on my Google travels. Could > anyone suggest how to perform encryption in ruby, in particular based > on a rails application...? You might want to check out keybox and see if it would meet your needs. http://keybox.rubyforge.org/ Its a pure ruby password database utilizing the SSL libraries for encryption. It ships as a commandline application but it is fully utilizable via its API. If you have any questions, feel free to let me know. enjoy, -jeremy -- ======================================================================== Jeremy Hinegardner jeremy@hinegardner.org