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