What a Cryptographic Hash Function Actually Does
A hash function takes any input, such as a password or an entire file, and produces a fixed-length string called a hash. The same input always produces the same hash, but the process cannot be reversed, so a hash generator is best understood as producing a one-way fingerprint rather than a reversible code.