If what you're trying to do is verify a password entered into an
application, what you should do is hash the entered password using the
same SHA1 method. The resulting hash will be the same as the stored
hash if the passwords are the same.

--Erik

Tushar Gandhi wrote:
> Hi,
> I am using "Digest::SHA1.hexdigest" to encrypt password. Now, I want to
> decrypt that password. Is it possible to decrypt the password and
> recover original one?
>
> Thank,
> Tushar
> --
> 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