thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Commonly confused · Security Fundamentals & Crypto

Hashing vs Encryption vs Encoding: What's the Difference?

Hashing is a one-way function that produces a fixed-length digest for integrity checking, encryption is a reversible transformation that requires a key to protect confidentiality, and encoding is a reversible format change that provides no security at all.

Hashing

vs

Encryption

Full definition
vs

Encoding

HashingEncryptionEncoding
Reversible?No (one-way)Yes, with the correct keyYes, by anyone
Uses a key?No (HMAC adds a key)YesNo
Security goalIntegrityConfidentialityNone, only data usability
Output lengthFixed regardless of input sizeRoughly proportional to inputProportional to input
ExamplesSHA-256, SHA-3, bcryptAES, RSA, ChaCha20Base64, URL encoding, ASCII, UTF-8
Typical usePassword storage, file integrity checksProtecting data at rest and in transitSafely transmitting binary data over text channels
Remember it

Hash to verify, encrypt to hide, encode to format.

Exam tip

A common distractor presents Base64 as a form of protection; it is encoding, not encryption. If the question says one-way or integrity, the answer is hashing.

Tested on

More Security Fundamentals & Crypto look-alikes