What is the difference between Encoding and Encryption?

Updated Apr 28, 2026

Short answer

Encoding is for data format transformation (e.g. Base64); Encryption is for data confidentiality.

Deep explanation

At a junior level, understanding the CIA triad (Confidentiality, Integrity, Availability) is crucial. Cryptography primarily addresses Confidentiality through encryption and Integrity through hashing and digital signatures.

Real-world example

Using HTTPS while browsing the web utilizes TLS to encrypt traffic between your browser and the server.

Common mistakes

  • Confusing Base64 encoding with encryption.

Follow-up questions

  • Can you reverse a hash?
  • What makes a password 'strong'?

More Cryptography interview questions

View all →