Disclaimer: I am a consultant at Amazon Web Services, and this is my personal blog. The opinions expressed here are solely mine and do not reflect the views of Amazon Web Services (AWS). Any statements made should not be considered official endorsements or statements by AWS.
You might have heard these terms very often – Encryption, Hashing & Salting. In this post, I have tried to explain you all these terms in a very easy way.
Encryption is the process of converting information from one form to another using an encryption key. Encryption also allows us to recover the original information back using the corresponding encryption key.
Hashing is the process of converting information from one form to another, but in the case of hashing, information is not recoverable. Once a value is hashed, we can not get the original value from its hashed value.
Salting is the process of adding additional data to the information before hashing it. For example,
Pas$w0rd
SALT
Pas$w0rdSALT
Pas$w0rdSALT
Salting with hashing makes your information more confidential & not easily hackable.
Your Salt should always be very confidential. Though even if someone knows your salt cannot hack your information as hashing is itself very secure. But if an attacker tries various possible passwords & append your salt, then there is a possibility that he might end up cracking the password.