
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:
| Encryption | Hashing | |
|---|---|---|
| Purpose | Keep data secret from anyone without the key | Prove that data, or a password, matches what was recorded |
| Reversible? | Yes, with the key | No, by design |
| Uses a key? | Yes. Whoever holds the key can read the data | No key. A password hash adds a random salt and a cost factor |
| Output | About the size of the input | A fixed length, whatever the size of the input |
| Published standard | AES, in FIPS 197: AES-128, AES-192 and AES-256, named for the key length in bits | The Secure Hash Standard, FIPS 180-4, whose digests are used to detect whether messages have been changed |
| Where you meet it at work | Laptop disk encryption, encrypted email, backups, the padlock in a browser | Stored passwords, file integrity checks, digital signatures |
| What goes wrong | The key is lost, or stored beside the data it protects | A 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.
| Asset | What is at risk | Which control applies | What it does not cover | Exception owner |
|---|---|---|---|---|
| Staff laptop | Client files if the laptop is lost or stolen | Disk encryption. Microsoft describes BitLocker as encryption for entire volumes, addressing data theft or exposure from lost, stolen or inappropriately decommissioned devices | Files once the user is signed in, files copied to email or a USB drive | IT, for any laptop reported as not encrypted |
| Contractor device | Copies of company files on a computer the firm does not manage | Neither can be verified. Keep data off the device: browser or remote-session access, no local sync | Whatever the contractor has already downloaded | The manager who engaged the contractor |
| Shared server | Files at rest, backups, and the sign-in database of the line-of-business application | Encryption for the disks and backups; hashing for the stored passwords | A signed-in user with too much access; encryption does not fix permissions | The 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?
- How are passwords stored? The answer should be a salted hash with a named password hashing scheme, never encryption and never plain text.
- Is our data encrypted at rest and in transit? Ask for both, and for backups too, because backups are where old copies live.
- 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.
- What happens if a key is lost or must be changed? You are asking whether recovery and rotation have been done before.
- 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.
- NIST glossary, encryption: the definition of encryption and decryption.
- NIST glossary, hash function: the one-way and collision-resistant properties.
- NIST FIPS 197, Advanced Encryption Standard: the three AES key lengths.
- NIST FIPS 180-4, Secure Hash Standard: what message digests are used for.
- NIST SP 800-63B, Digital Identity Guidelines: Authentication: password storage: salted and hashed, salt length, cost factor.
- Microsoft Learn, BitLocker overview: what BitLocker encrypts and the threats it addresses.
- 16 CFR 314.4, Safeguards Rule elements (2025 edition): the encryption requirement.
- 45 CFR 164.312, Technical safeguards (2025 edition): encryption as an addressable specification.
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.


