Skip to interview prep
Apexed

5. How are hashing and encryption different when protecting data?

EasyApplication & data security

Technical
Show model answer

Encryption is designed to recover data using an authorized key. A cryptographic hash produces a digest and is not designed to recover the original input; plain fast hashing is not suitable password storage.

Choose the mechanism for the actual purpose, using maintained libraries and appropriate password-hashing schemes for passwords. Protect keys separately; a strong algorithm cannot compensate for exposed key material.

What interviewers listen for

  • Reversible versus one-way purpose
  • Use appropriate password hashing
  • Protect keys
How are hashing and encryption different when protecting data — Cybersecurity interview question — Apexed