Hash function

Applies to: cybersecurity, python, general

A hash function maps input data to a fixed-size digest. Cryptographic hashes are designed to resist reversal and collisions.

hashlib.sha256(data).hexdigest()

See also: hmac, salt