-4

How to decrypt the password,which was encrypted by salt in php?

sayali
  • 13
  • 7
  • 4
    You can't, and **that's the whole point**. It's not *encrypted*, it's *hashed*. – jonrsharpe May 13 '15 at 07:09
  • You simply don't, because if you could, it wouldn't make sense to hash a password if you could just reformat it into the old password. The only chance you have is guessing what the salt is, remove it and try to cause a collision, but well, have fun doing that. – Realitätsverlust May 13 '15 at 07:13
  • 1
    You can't reverse salt beef to recreate the cow – Mark Baker May 13 '15 at 07:28

3 Answers3

2

You cannot decrypt the password, if you really want to find out for yourself search some more over the internet for 'Salt Decrypters' or whatever but it will be pointless

Kenziiee Flavius
  • 1,918
  • 4
  • 25
  • 57
1

You can't.

In cryptography, a salt is random data that is used as an additional input to a one-way function that hashes a password or passphrase.

A salt makes the hash computation unique so that adversaries wishing to break passwords cannot make computations that are useful to break many passwords at once.

You cannot recover the password from the hash. With a proper password hash, the only way to recover the password given the hash is to make a guess and verify it.


References:

Community
  • 1
  • 1
Drakes
  • 23,254
  • 3
  • 51
  • 94
0

The point of hashing is that you won't try to find the origin cleartext password but if you need a login system for example, you will compare the one stored in database (which is hashed) with the one that your user has provided which you'll hash.

Cr3aHal0
  • 809
  • 4
  • 11