Hashing vs. encryption: what is the difference?

Last updated: September 28, 2026

“Hashing” and “encrypting” are often confused. They are two very different operations, with uses that do not overlap. Kortex Hash only deals with hashing.

Hashing: a one-way fingerprint

A hash function turns data of any size into a fixed-size fingerprint (for example 256 bits for SHA-256). The operation is deterministic (the same input always gives the same hash) and one-way: the input cannot be rebuilt from the hash. There is no “inverse function”.

It is used to check a file’s integrity, store passwords (with a dedicated function), index data, or sign. Recovering an input from a hash is only possible by comparison: candidates are hashed to see whether one gives the same hash. That is exactly what thedictionary attack andbrute force tools do.

Encryption: reversible with a key

Encryption turns data into unreadable text, but reversibly: the right key recovers the original (decryption). It is what protects a message, a disk or a connection. AES, RSA and ChaCha20 are encryption algorithms; Caesar and XOR are historical or elementary examples.

Summary table

 HashingEncryption
Reversible?No, neverYes, with the key
Key required?No (except HMAC)Yes
Output sizeFixed≈ input size
PurposeFingerprint, integrity, passwordsConfidentiality
ExamplesSHA-256, bcrypt, MD5AES, RSA, ChaCha20

What about encryption, then?

Encryption (AES, RSA, XOR, Caesar…) will have its own dedicated site, separate from Kortex Hash. We prefer not to mix the two fields, precisely because confusing “hashing” with “encrypting” is at the root of many mistakes. This page will be updated with the link as soon as that site is available.