From: Dan Zwell Date: 2007-09-02T20:47:33+09:00 Subject: Re: 2 Way encryption for password 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...? > > Many thanks > > Gabriel > > Have a look here: http://stakeventures.com/articles/2005/06/16/crypto-in-ruby (OpenSSL contains many encryption algorithms), and you might want to browse this list: http://raa.ruby-lang.org/cat.rhtml?category_major=Library;category_minor=Cryptography Hope this helps, Dan