On 09 Nov 2009, at 12:46, Frederick Cheung wrote:

>>> I want decrypt a password which is encrypted by MD5.
>>
>> MD5 is a hash algorithm, which means it's a one-way encryption. You
>> have no way of decrypting the hash to the original password. And  
>> since
>> you are using a salt, even the rainbow tables hackers use will be
>> pretty useless.
>
> And at least according to the snippet posted, it's not MD5 it's SHA1
> (which is harder to brute force)

Indeed, missed out on that, but the conclusion is still the same,  
digesting is one way, so you can't decrypt the password in a  
convenient way. It's easier just to implement a password reset routine.


Best regards

Peter De Berdt


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