Hash Functions in System Security (original) (raw)

Last Updated : 11 Apr, 2026

A hash function is a mathematical function that plays a critical role in system security by converting input data of any size into a fixed-length, seemingly random value. This output is called the hash value or digest.

Features

Hash Function vs Encryption

Hash Function Encryption
Ensures data integrity and authenticity. Ensures data confidentiality.
One-way original data cannot be recovered from a hash. Two-way original data can be recovered using decryption key.
Fixed-length digest, independent of input size. Output size may vary; usually similar to input size.
The same input always produces the same hash. The same plaintext can produce different ciphertexts (with randomization in some algorithms).
Password storage, message verification, digital signatures. Secure communication, file encryption, secure storage.

Advantages

Disadvantages