Ben Johnson wrote:
> I have done multiple google searches and searched the mailing list. All
> of the solutions I found seemed kind of heavy / complicated. I just want
> a very simple way to encrypt and decrypt a string. Something like:
> 
> encrypt("fdsfdsfdsf", "some key");
> decrypt("fdsfdsfsdf", "some key");
A quick Google for "Ruby AES encrypt" reveled several examples.

This one looks fine to me. (completely untested):
http://brentrubyrails.blogspot.com/2007/12/aes-encryption-and-decryption-in-ruby.html
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to