Foxcolab

Glossary

Hashing

Definition

Hashing: Running data through a one-way hash function that maps input of any length to a short, fixed-length value. The same input always gives the same hash, and finding an input that matches a given hash is computationally infeasible.

Also known ashash functioncryptographic hashmessage digestchecksumfingerprint

In short

Hashing runs data through a one-way function that always produces a short, fixed-length value, called a hash or digest. The same input gives the same hash, a tiny change gives a completely different one, and there's no way to work backward. Services hash passwords so a stolen database holds no passwords, and people compare hashes to prove a file wasn't changed.

Key takeaways

  • A hash is a fixed-length fingerprint of data. The same input always gives the same hash.
  • Hashing is one-way and has no key, unlike encryption, which anyone with the key can reverse.
  • Passwords need slow, salted hashing, because fast hashes let attackers test billions of guesses.
  • A hash shows data is unchanged. Proving who produced it takes a digital signature.
  • Hashing can also hide data from a server while still letting it compare values.

Last reviewed 30 November 2026

Hashing runs data through a one-way function that turns input of any size, from a password to a 4 GB video, into a short, fixed-length value called a hash or digest. The same input always gives the same hash, and changing one character changes it completely. NIST describes a hash function as mapping "a bit string of arbitrary length to a fixed-length bit string," where finding an input that matches a given hash, or two inputs with the same hash, is computationally infeasible.

Hashing isn't encryption#

Encryption is two-way: anyone holding the encryption key can turn ciphertext back into the original. Hashing has no key and no way back. OWASP puts the practical difference plainly: an attacker who steals a password hash "cannot use it to log in as the victim," while encrypted passwords can be decrypted. So you hash what you only need to check, and encrypt what you need to read again.

A worked example#

You download installer.dmg from example.com, and the download page lists its hash. Your computer hashes the file you received and gets the same value, so it arrived intact. One corrupted byte, and they wouldn't match.

Sign-in works the same way: the service stores a hash of your password, hashes what you type and compares the two.

What short definitions miss#

Fast hashes are wrong for passwords. With a stolen database, attackers can test billions of guesses offline. Password hashing is deliberately slow and adds a unique random salt to each password, so identical passwords produce different hashes. NIST's SP 800-63B-4 requires passwords to be "salted and hashed using a suitable password hashing scheme." A key derivation function applies the same idea to turn a password into a key.

A hash proves integrity, not origin. If an attacker can replace both the file and the published hash, the check still passes. Proving who produced data takes a digital signature.

In Foxcolab#

Foxcolab stores your sign-in password only as a salted, deliberately slow hash, and the tokens that keep you signed in as hashes too, so its database holds a copy of neither.

In Foxcolab Drive, where files and file names are end-to-end encrypted, each name also gets a keyed hash made in your browser. That lets Drive stop two files with the same name landing in one folder without learning the name. When you create a link under File requests, it carries a fingerprint of your public key. The sender's browser hashes the key Foxcolab's server provides and encrypts files only when the two match, so a swapped key can't expose uploads.

See how Drive links keep files private, or create a free account.

Keep exploring

All terms

Foxcolab

Private work tools, without the ads.

Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.

Jump to