Yii Framework Forum: Hash Decrypt - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Hash Decrypt Rate Topic: -----

#1 User is offline   Marc De Joya 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 16-April 13

Posted 17 April 2013 - 01:53 PM

How can I decrypt a variable once it has been encryted in sha1 or md5?
0

#2 User is offline   Coksnuss 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 140
  • Joined: 14-May 09

Posted 17 April 2013 - 03:01 PM

SHA1 and MD5 are hash algorithms, i.e. they do not encrypt your value. One of the goals of hashing algorithms is to give you a hard time to reverse them.
Decrypting is only possible with a dictonary attack or by bruteforce.
0

#3 User is offline   Tropi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 73
  • Joined: 30-November 11

Posted 17 April 2013 - 05:33 PM

View PostCoksnuss, on 17 April 2013 - 03:01 PM, said:

Decrypting is only possible with a dictonary attack or by bruteforce.

This is not true. Hashes are non-reversable. This is also true for weak hashing algorithms, the problem with those is, that you don't actually have to find the original plain text, any collision will do.


@topic: You could also use rainbow tables. But as already said, you can't decrypt a hash.
0

#4 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,222
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 18 April 2013 - 12:59 AM

Toss the hashes into Google. md5 and sha1 are widespread hash methods, so if the hashed value is common, chances are good something comes up.
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

#5 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,738
  • Joined: 17-January 09
  • Location:Russia

Posted 18 April 2013 - 02:03 AM

Hashes are irreversable but with modern hardware you can bruteforce even sha256 very fast.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users