+ 1

Can you explain what hashing is? What is the difference between hashing and encryption?

29th Apr 2019, 5:48 AM
Md. Asiful Hoque Prodhan
Md. Asiful Hoque Prodhan - avatar
5 Answers
+ 9
Hash Function is used in hashing, it is an technique by which an message is converted into compresses form this compress code is known as hash. đŸ’„ Converts a variable size message M into fixed size hash code H(M) (Sometimes called a message digest) đŸ’„ Can be used with encryption for authentication In hashing hash code is made by using hash function and then encryption is performed E(M || H) => in this step first message is combined with hash code generated by hash function Then encryption is performed M || E(H) => in this step message M is combined with encrypted hash code so in this only hash code generated by hash function is encrypted M || signed H => then message is combined with signed hash E( M || signed H ) gives confidentiality M || H( M || K ) => in this step message is combined with key which can be private or public according to the technique used generally private key is more secured E( M || H( M || K ) ) => in last step which message is generated as output is finally encrypted.
29th Apr 2019, 6:31 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 6
In this way whole message is encrypted with the help of private key and public key and encryption algorithm generally sha which secured hash algorithm is used in such cases which uses private key and whole message is compressed and encrypted by following this algorithm steps.
29th Apr 2019, 6:33 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 4
Hashing is analogous to burning wood to get a unique ash that only the specific wood could produce it again if needed but you can't convert the ash back to wood. Encryption is like adding a color to a colored liquid to get a new colored liquid but this time you have another color (key) set aside that could be mixed with the new colored liquid to get the liquid back to its original color.
29th Apr 2019, 6:47 AM
Dan Rhamba
Dan Rhamba - avatar
+ 3
hash is one-way, which means it cant be converted into the original. encryption is the opposite, you can convert it back to original with a key
29th Apr 2019, 6:26 AM
Taste
Taste - avatar