Fundamental difference between Hashing and Encryption algorithms

前端 未结 13 2072
日久生厌
日久生厌 2020-11-21 06:35

I see a lot of confusion between hashes and encryption algorithms and I would like to hear some more expert advice about:

  1. When to use hashes vs encryptions<

13条回答
  •  忘了有多久
    2020-11-21 07:00

    My two liners... generally Interviewer wanted the below answer.

    Hashing is one way . You can not convert your data/ string from a hash code.

    Encryption is 2 way - you can decrypt again the encrypted string if you have the key with you.

提交回复
热议问题