On Tue, Mar 10, 2009 at 10:15 AM, Jeff Pritchard <
[email protected]> wrote:

>
> MaD wrote:
> > depends on what you are looking for. if want to have a one-way
> > function (for passwords and such) just try it like this:
> >
> >   encrypted_item = Digest::SHA256.hexdigest(�string_to_encrypt�)
> >
> > you could also use SHA1, SHA384, SHA512 depending on your need of
> > security.
>
> Thanks, but I need to decrypt it also.  It is "for your eyes only" user
> data.
>
> thanks,
> jp
>
There is a ruby-aes-normal gem. I have never used it. Have you looked at?

Cheers--

Charles

--~--~---------~--~----~------------~-------~--~----~
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