Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I decrypt SHA-512 hash code using salt?

I have encrypted data using sha-512 Algo and its salt , I want to decrypt that data please anyone tell me how can I decode it using Java.

Thanks

like image 537
Narendra Avatar asked Nov 29 '12 08:11

Narendra


People also ask

Can you decrypt SHA512 hash?

Since SHA512 is a hash algorithm based on non-linear functions, it is designed to prevent any decryption method and so is made to be uncrackable.

Can we decrypt SHA256 with salt?

Since SHA256 is a hash based on non-linear functions, there is no decryption method. dCode uses word databases whose hash has already been calculated (several million potential passwords) and checks if the hash is known. If it is not known or combined with salting the decryption will probably fail.

Is it possible to decrypt a hash?

Encryption is a two-way function; what is encrypted can be decrypted with the proper key. Hashing, however, is a one-way function that scrambles plain text to produce a unique message digest. With a properly designed algorithm, there is no way to reverse the hashing process to reveal the original password.

How do I Unhash a password?

Hashing is a one-way function - it is specifically designed NOT to be reversible! You CANNOT un-hash a hashed value.


2 Answers

SHA-512 is a cryptographic hash function. Cryptographic hash functions are one way - you can calculate the hash for a block of data, but it is not possible to get the original data back when you have only the hash. So you cannot decrypt a hash code to get back the original data.

Cryptographic hash functions are often used to store passwords in a database. To check if the password that a user entered is correct, the first thing you might think is "Ok, so I have to decrypt the password in the database and check if it's equal to what the user entered". That is, however, not how you do this.

Instead, what you do is hash the password that the user entered, and compare that hash to the hash stored in the database. If the hashes are the same, the user entered the correct password. You don't need to "decrypt" the hash.

like image 143
Jesper Avatar answered Oct 02 '22 08:10

Jesper


SHa 512 is not an encryption. Hash an algorithm that is designed to be one way only to verify the integrity of data.

So in short: No, you cannot "decrypt" any hash algorithm.

like image 26
Strike Avatar answered Oct 02 '22 09:10

Strike