A Cryptographic Hash Function (CHF) is a mathematical algorithm that validates data integrity and secures blockchain transactions by producing unique, fixed-len...
A Cryptographic Hash Function (CHF) is a mathematical algorithm that validates data integrity and secures blockchain transactions by producing unique, fixed-len...
Updated · 5 min read
Cryptographic hash function (CHF) is a deterministic function used to help verify data integrity. Cryptographic hash functions are also used to secure transactions on the blockchain. They map variable-length inputs to fixed-length digests. Since the output length is fixed, different inputs can produce the same digest; security relies on computational resistance to finding collisions, preimages, and second preimages. Hashing is not encryption: a digest is not ciphertext.[1][2][9]
At a glance
Profile Summary
Profiles
Connected wikis
Compare Cryptoassets
Select an asset to compare its price and other stats against Cryptographic Hash Function (CHF).
?
7 metrics
In this wiki
Cryptography is the science and technique of securing information and communications to guarantee that only those for whom the information is intended can understand and process it.
A Hash Function is a function that converts a given numeric or alphanumeric key to a small practical integer value.
All cryptographic hash functions are hash functions but not every hash function is a cryptographic hash function.
Cryptography is the science and technique of securing information and communications to guarantee that only those for whom the information is intended can understand and process it. A cryptographic hash function deterministically maps variable-length input to a fixed-length digest. Because the output length is fixed, collisions—different inputs with the same digest—exist. Cryptographic hash security relies on computational resistance to finding collisions, preimages, and second preimages. Hashing is not encryption: a digest is not ciphertext.[9]
A Hash Function is a function that converts a given numeric or alphanumeric key to a small practical integer value. The mapped integer value is used as an index in the hash table. In simple terms, a hash function maps a significant number or string to a small integer that can be used as the index in the hash table. The pair is of the form (key, value), where for a given key, one can find a value using some kind of a “function” that maps keys to values. The key for a given object can be calculated using a function called a hash function.[6] This ordinary hash-table use is distinct from cryptographic hashing, which is designed to provide security properties.
All cryptographic hash functions are hash functions but not every hash function is a cryptographic hash function.[3][4]
A Cryptographic Hash Function (CHF) is a single direction work, making it extraordinarily difficult to reverse in order to recreate the information used to make it.[1][8]
Cryptographic hash algorithms
Cryptographic hash functions (CHFs) are broadly classified into two classes. Unkeyed hash functions also known as Manipulation Detection Code (MDC) or Message Authentication Code (MAC) with single a parameter — an input message , and keyed hash functions with two distinct inputs — an input message and a secret key. Generally, the term hash functions refer to unkeyed hash functions.
The following are examples of cryptographic hash algorithms.
SHA (Secure Hash Algorithm) family
The Secure Hash Algorithm (SHA) family includes the legacy SHA-1, the SHA-2 family, and SHA-3. SHA-2 includes SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, and SHA-512/256. SHA-224 and SHA-256 operate on 512-bit message blocks divided into 32-bit words, while SHA-384, SHA-512, SHA-512/224, and SHA-512/256 operate on 1024-bit blocks divided into 64-bit words. SHA-0 is an earlier withdrawn algorithm, not one of the current SHA standards. Bitcoin, the original and largest cryptocurrency, uses the SHA-256 hash function.[3][5]
SHA-1 produces a 160-bit digest. It is deprecated because of collision weaknesses and is not suitable for new security-sensitive uses.[9]
SHA-2 is a widely used standardized family comprising SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, and SHA-512/256; the number in each name indicates the digest length in bits. SHA-2 and SHA-3 are current standardized families, while SHA-1 is legacy.[9]
NIST deprecated SHA-1 in 2011 and disallowed its use for digital signatures at the end of 2013. NIST has planned a transition away from its remaining limited uses.[10]
SHA-256 is a NIST-recommended and officially approved standard algorithm. It is used to verify data content, including by government and public-sector agencies.[4]
SHA-3
SHA-3, specified in FIPS 202 and based on Keccak, is a structurally different standardized alternative that supplements SHA-2. FIPS 202 defines four fixed-output functions: SHA3-224, SHA3-256, SHA3-384, and SHA3-512, which produce digests of the indicated bit lengths. It also defines SHAKE128 and SHAKE256, extendable-output functions (XOFs), not fixed-output digest variants. Applications can request a chosen output length from SHAKE, subject to the construction’s security requirements.[9]
On March 12, 2025, NIST announced that it would update FIPS 202 and revise SP 800-185. The planned SP 800-185 revision includes streaming specifications for SHAKE128 and SHAKE256. NIST’s publications listing shows SP 800-185 Rev. 1 as a draft released October 8, 2026, while FIPS 202 remains listed as final.[11][10] The streaming work addresses use cases where the full input or requested output length may not be known at the start.
The MD (Message Digest) family
MD Comprises of MD2, MD4, MD5 and MD6 authored by Ronald Rivest for RSA security and was adopted as the Internet Standard RFC 1321 .[3]
A family of cryptographic hash functions based upon the design principles used in MD4 developed by Hans Dobbertin, Antoon Bosselaers, and Bart Preneel at the COSIC research group at the Katholieke Universiteit Leuven. RIPEMD-160 produces a hash digest of 160 bits (20 bytes).[3]
Whirlpool
Designed by Vincent Rijmen and Paulo S. L. M. Barreto, this hash function is based on a substantially modified version of the Advanced Encryption Standard (AES). Whirlpool produces a hash digest of 512 bits (64 bytes).[3]
BLAKE
A hash function submitted to the NIST hash function competition by Jean-Philippe Aumasson, Luca Henzen, Willi Meier, and Raphael C.-W. Phan. It is based on Dan Bernstein’s ChaCha stream cipher, but a permuted copy of the input block, XORed with round constants, is added before each ChaCha round.[3]
Curl-P
A hash function formerly used in IOTA Signature Scheme (ISS). IOTA is a cryptocurrency designed for use with the Internet of Things (IoT) and automotive ecosystems. ISS is based on Winternitz One-Time Signatures but unlike traditional Winternitz, in IOTA users sign the hash of a message. Thus, the security of ISS relies on its cryptographic hash function, which was Curl-P-27.[3]
Use cases of CHF
Password Verification
Password verifiers should use purpose-built, tunable slow password-hashing functions rather than ordinary fast hashes. Each password should have a unique salt, which frustrates precomputed lookup tables such as rainbow tables. Fast general-purpose hashes such as SHA-256 are unsuitable for password storage because they permit rapid guessing. OWASP recommends Argon2id with a minimum of 19 MiB of memory, two iterations, and one degree of parallelism; scrypt or bcrypt are alternatives when appropriate, and PBKDF2 can be used where FIPS compliance is required.[12] Attackers have created databases of common passwords and their hashes, called rainbow tables, which can make it easier for them to get into accounts.[7]
Signature Generation and Verification
Verifying signatures is a mathematical process used to verify the authenticity of digital documents or messages. A valid digital signature, where the prerequisites are satisfied, gives its receiver strong proof that a known sender created the message and that it was not altered in transit. A digital signature scheme typically consists of three algorithms: a key generation algorithm; a signing algorithm that, given a message and a private key, produces a signature; and a signature verifying algorithm.[7]
NIST finalized FIPS 205, the Stateless Hash-Based Digital Signature Standard (SLH-DSA), on August 13, 2024. Based on SPHINCS+, SLH-DSA is a stateless hash-based signature algorithm selected through NIST’s post-quantum standardization process and designed to resist attacks by future quantum computers. Its construction uses hash functions, but this does not mean that all hash functions or all digital signature schemes are post-quantum secure.[13]
Verifying File and Message Integrity
Hashes can ensure messages and files transmitted from sender to receiver are not tampered with during transit. The practice builds a "chain of trust." For example, a user might publish a hashed version of their data and the key so that recipients can compare the hash value they compute to the published value to make sure they align.[7]