Skip to main content
Offline·Progress is saved on this device and syncs the next time you open the app online.
Compare

Hashing vs Encryption

Hashing and encryption are both cryptographic, but they serve opposite goals. One is a reversible lock for confidentiality; the other is a one-way fingerprint for integrity. Mixing them up is a common exam trap.

Last updated August 2026

Hashing vs Encryption side by side
AspectHashingEncryption
Reversible?No, one-way by designYes, two-way with the key
PurposeVerify integrity, store passwordsProtect confidentiality
OutputFixed-length digestCiphertext that scales with the input
KeyNo key (may use a salt or an HMAC key)Requires a key
CIA goalIntegrityConfidentiality
ExamplesSHA-256, SHA-3, MD5 (broken)AES, RSA, ChaCha20

The bottom line

Encryption protects confidentiality and can be reversed with the key; hashing is a one-way fingerprint that proves integrity and cannot be reversed. Passwords should be hashed with a salt and a slow algorithm, never encrypted.

Lock it in with practice

Reading the difference is a start. SecPlus Mastery drills it with over 1,000 practice questions, timed mock exams, and spaced review across all five SY0-701 domains, so it sticks for exam day.

New accounts get 30% off both plans for 7 days: the 90-Day Pass is $27.30 instead of $39.

FAQ

  • Can you decrypt a hash?
    No. Hashing is one-way by design. Attackers can only guess inputs and compare hashes, which is why salting and slow hashes such as bcrypt, scrypt, and Argon2 matter for passwords.
  • Why hash passwords instead of encrypting them?
    Encryption is reversible, so a stolen key would expose every password. A salted one-way hash cannot be reversed, so even the provider never stores the actual password.

More Security+ comparisons

Compare Security+ to other certifications

Written to the CompTIA Security+ SY0-701 objectives. CompTIA and Security+ are trademarks of CompTIA, used here for identification only.