HomeBlogComparison

Encryption vs Hashing: Which controls reduce your exposure?

A friendly white robot with a black visor studies a blue shield over a group of business devices in a voxel office

Compare Encryption and Hashing by asking one question. Which systems does the control actually protect? Define the assets at risk, the protection in place and the owner of each exception.

What distinguishes Encryption from Hashing?

Encryption scrambles data so that only someone with the key can turn it back into the original. Hashing runs data through a one-way function that produces a fixed-length fingerprint, which cannot be turned back. Use encryption when you need the data again later: files on a laptop, a backup, an email. Use hashing when you only need to check that something matches: a password at sign-in, or a file that should not have changed.

The NIST glossary describes encryption as the cryptographic transformation of plaintext into ciphertext that conceals the data's original meaning, and notes that when the transformation is reversible the reversal is called decryption. It describes a hash function as a function whose output length is fixed, designed to be one-way (it is computationally infeasible to find an input that maps to a given output) and collision-resistant (infeasible to find two inputs that map to the same output).

The difference between hashing and encryption in tabular form:

EncryptionHashing
PurposeKeep data secret from anyone without the keyProve that data, or a password, matches what was recorded
Reversible?Yes, with the keyNo, by design
Uses a key?Yes. Whoever holds the key can read the dataNo key. A password hash adds a random salt and a cost factor
OutputAbout the size of the inputA fixed length, whatever the size of the input
Published standardAES, in FIPS 197: AES-128, AES-192 and AES-256, named for the key length in bitsThe Secure Hash Standard, FIPS 180-4, whose digests are used to detect whether messages have been changed
Where you meet it at workLaptop disk encryption, encrypted email, backups, the padlock in a browserStored passwords, file integrity checks, digital signatures
What goes wrongThe key is lost, or stored beside the data it protectsA fast, unsalted hash is used for passwords, or a hash is mistaken for anonymization

Which systems does the control actually protect?

Encryption and hashing each protect a specific place, not the business as a whole. Run the question against three assets in an illustrative 40-person office.

AssetWhat is at riskWhich control appliesWhat it does not coverException owner
Staff laptopClient files if the laptop is lost or stolenDisk encryption. Microsoft describes BitLocker as encryption for entire volumes, addressing data theft or exposure from lost, stolen or inappropriately decommissioned devicesFiles once the user is signed in, files copied to email or a USB driveIT, for any laptop reported as not encrypted
Contractor deviceCopies of company files on a computer the firm does not manageNeither can be verified. Keep data off the device: browser or remote-session access, no local syncWhatever the contractor has already downloadedThe manager who engaged the contractor
Shared serverFiles at rest, backups, and the sign-in database of the line-of-business applicationEncryption for the disks and backups; hashing for the stored passwordsA signed-in user with too much access; encryption does not fix permissionsThe server owner, for the backup key and the application vendor's answers

The server row is where both appear together. The files and backups are encrypted because the business must read them again. The passwords are hashed because nobody, including the administrator, should be able to read them at all.

Should passwords be encrypted or hashed?

Hashed. A system only needs to check that the password typed matches the one set, so it should store something that cannot be reversed. NIST's digital identity guideline, SP 800-63B, says verifiers shall store passwords in a form that is resistant to offline attacks, salted and hashed using a suitable password hashing scheme. The scheme takes a password, a salt and a cost factor, and its purpose is to make each password guess more expensive for an attacker who has obtained a hashed password file. The guideline requires a salt of at least 32 bits.

That is the answer to listen for when a software vendor describes how it stores your staff's or customers' passwords. If a vendor can email you your existing password, it is not stored as a hash. Our guide to the NIST password guidelines covers the rules for the passwords themselves.

What mistakes expose a business?

  • The key lives with the data. An encrypted backup whose key sits in a text file on the same server is readable by whoever takes the server.
  • Nobody can find the key. A recovery key that existed only on a former employee's desk turns encryption into data loss. Record where recovery keys are escrowed and who can retrieve them.
  • Hashing treated as anonymization. Hashing an email address or an account number does not make it anonymous. The set of possible inputs is small enough that someone can hash candidates and compare.
  • Encoding mistaken for either. Base64 and similar encodings only change how data is written. Anyone can reverse them without a key.
  • Encryption assumed where it is not on. A policy that says laptops are encrypted is not evidence. A report from the management console is.

When is encryption a legal requirement?

Often enough that it should be the default. The FTC's Safeguards Rule tells covered financial institutions to protect by encryption all customer information held or transmitted, both in transit over external networks and at rest, or to use compensating controls approved by the firm's Qualified Individual where encryption is infeasible (16 CFR 314.4(c)(3)). The HIPAA Security Rule lists encryption of electronic protected health information as an addressable specification (45 CFR 164.312). Which rules apply depends on your industry and data; our overview of U.S. cybersecurity laws for businesses is a starting point, and counsel should confirm.

What should you ask a software vendor?

  1. How are passwords stored? The answer should be a salted hash with a named password hashing scheme, never encryption and never plain text.
  2. Is our data encrypted at rest and in transit? Ask for both, and for backups too, because backups are where old copies live.
  3. Who holds the keys? If the vendor holds them, its staff and anyone who compromises the vendor can read the data. That may be acceptable, but it should be a decision.
  4. What happens if a key is lost or must be changed? You are asking whether recovery and rotation have been done before.
  5. How can we verify it? A report, a setting you can see or an audit document. A sentence on a marketing page is not verification.

Assumptions: a typical office with managed Windows or Mac laptops, cloud email and one or two servers or hosted applications. What would change the recommendation: software you build yourself (then password hashing is your job, not a vendor's), data covered by a specific rule, or devices you cannot manage, where the right control is keeping the data off them.

For the encryption side in more depth, see business data encryption basics and the email encryption FAQ. If you want the review done for you, our IT consulting work produces a written assessment of what is encrypted, where the keys are and which vendor answers are missing. Discuss a security review to scope it.

More on this topic: Cybersecurity guides.

Frequently asked questions

What is the difference between hashing and encryption?

Encryption is two-way: data is scrambled with a key and can be restored with the key, so it is used to keep information secret. Hashing is one-way: it produces a fixed-length fingerprint that cannot be reversed, so it is used to verify passwords and detect changes to files.

Is hashing a form of encryption?

No. Both are cryptographic techniques, but encryption is designed to be reversed by a key holder and hashing is designed not to be reversed by anyone. A hash cannot be decrypted because there is no key and the original data is not contained in it.

What is a salt?

A salt is a random value added to each password before it is hashed, so that two people with the same password get different hashes. NIST SP 800-63B requires a salt of at least 32 bits and says both the salt and the resulting hash are stored for each password.

Which is more secure, encryption or hashing?

Neither. They solve different problems. Encryption protects confidentiality when the data must be read again. Hashing protects passwords and proves integrity when the original never needs to be recovered. Most business systems use both.

Sources

Each source was read on December 2, 2026.

IT Consulting

Discuss IT Consulting for your business.

Tell us about your current systems, the result you need and your timeline. We will discuss the work, responsibilities and pricing before you decide on an engagement.