# `pwnlib.util.hashes` — Hashing functions

Functions for computing various hashes of files and strings.

pwnlib.util.hashes.blake2bfile(x)

  Calculates the blake2b sum of a file

pwnlib.util.hashes.blake2bfilehex(x)

  Calculates the blake2b sum of a file; returns hex-encoded

pwnlib.util.hashes.blake2bsum(x)

  Calculates the blake2b sum of a string

pwnlib.util.hashes.blake2bsumhex(x)

  Calculates the blake2b sum of a string; returns hex-encoded

pwnlib.util.hashes.blake2sfile(x)

  Calculates the blake2s sum of a file

pwnlib.util.hashes.blake2sfilehex(x)

  Calculates the blake2s sum of a file; returns hex-encoded

pwnlib.util.hashes.blake2ssum(x)

  Calculates the blake2s sum of a string

pwnlib.util.hashes.blake2ssumhex(x)

  Calculates the blake2s sum of a string; returns hex-encoded

pwnlib.util.hashes.md5file(x)

  Calculates the md5 sum of a file

pwnlib.util.hashes.md5filehex(x)

  Calculates the md5 sum of a file; returns hex-encoded

pwnlib.util.hashes.md5sum(x)

  Calculates the md5 sum of a string

pwnlib.util.hashes.md5sumhex(x)

  Calculates the md5 sum of a string; returns hex-encoded

pwnlib.util.hashes.sha1file(x)

  Calculates the sha1 sum of a file

pwnlib.util.hashes.sha1filehex(x)

  Calculates the sha1 sum of a file; returns hex-encoded

pwnlib.util.hashes.sha1sum(x)

  Calculates the sha1 sum of a string

pwnlib.util.hashes.sha1sumhex(x)

  Calculates the sha1 sum of a string; returns hex-encoded

pwnlib.util.hashes.sha224file(x)

  Calculates the sha224 sum of a file

pwnlib.util.hashes.sha224filehex(x)

  Calculates the sha224 sum of a file; returns hex-encoded

pwnlib.util.hashes.sha224sum(x)

  Calculates the sha224 sum of a string

pwnlib.util.hashes.sha224sumhex(x)

  Calculates the sha224 sum of a string; returns hex-encoded

pwnlib.util.hashes.sha256file(x)

  Calculates the sha256 sum of a file

pwnlib.util.hashes.sha256filehex(x)

  Calculates the sha256 sum of a file; returns hex-encoded

pwnlib.util.hashes.sha256sum(x)

  Calculates the sha256 sum of a string

pwnlib.util.hashes.sha256sumhex(x)

  Calculates the sha256 sum of a string; returns hex-encoded

pwnlib.util.hashes.sha384file(x)

  Calculates the sha384 sum of a file

pwnlib.util.hashes.sha384filehex(x)

  Calculates the sha384 sum of a file; returns hex-encoded

pwnlib.util.hashes.sha384sum(x)

  Calculates the sha384 sum of a string

pwnlib.util.hashes.sha384sumhex(x)

  Calculates the sha384 sum of a string; returns hex-encoded

pwnlib.util.hashes.sha3_224file(x)

  Calculates the sha3_224 sum of a file

pwnlib.util.hashes.sha3_224filehex(x)

  Calculates the sha3_224 sum of a file; returns hex-encoded

pwnlib.util.hashes.sha3_224sum(x)

  Calculates the sha3_224 sum of a string

pwnlib.util.hashes.sha3_224sumhex(x)

  Calculates the sha3_224 sum of a string; returns hex-encoded

pwnlib.util.hashes.sha3_256file(x)

  Calculates the sha3_256 sum of a file

pwnlib.util.hashes.sha3_256filehex(x)

  Calculates the sha3_256 sum of a file; returns hex-encoded

pwnlib.util.hashes.sha3_256sum(x)

  Calculates the sha3_256 sum of a string

pwnlib.util.hashes.sha3_256sumhex(x)

  Calculates the sha3_256 sum of a string; returns hex-encoded

pwnlib.util.hashes.sha3_384file(x)

  Calculates the sha3_384 sum of a file

pwnlib.util.hashes.sha3_384filehex(x)

  Calculates the sha3_384 sum of a file; returns hex-encoded

pwnlib.util.hashes.sha3_384sum(x)

  Calculates the sha3_384 sum of a string

pwnlib.util.hashes.sha3_384sumhex(x)

  Calculates the sha3_384 sum of a string; returns hex-encoded

pwnlib.util.hashes.sha3_512file(x)

  Calculates the sha3_512 sum of a file

pwnlib.util.hashes.sha3_512filehex(x)

  Calculates the sha3_512 sum of a file; returns hex-encoded

pwnlib.util.hashes.sha3_512sum(x)

  Calculates the sha3_512 sum of a string

pwnlib.util.hashes.sha3_512sumhex(x)

  Calculates the sha3_512 sum of a string; returns hex-encoded

pwnlib.util.hashes.sha512file(x)

  Calculates the sha512 sum of a file

pwnlib.util.hashes.sha512filehex(x)

  Calculates the sha512 sum of a file; returns hex-encoded

pwnlib.util.hashes.sha512sum(x)

  Calculates the sha512 sum of a string

pwnlib.util.hashes.sha512sumhex(x)

  Calculates the sha512 sum of a string; returns hex-encoded

pwnlib.util.hashes.shake_128file(x)

  Calculates the shake_128 sum of a file

pwnlib.util.hashes.shake_128filehex(x)

  Calculates the shake_128 sum of a file; returns hex-encoded

pwnlib.util.hashes.shake_128sum(x)

  Calculates the shake_128 sum of a string

pwnlib.util.hashes.shake_128sumhex(x)

  Calculates the shake_128 sum of a string; returns hex-encoded

pwnlib.util.hashes.shake_256file(x)

  Calculates the shake_256 sum of a file

pwnlib.util.hashes.shake_256filehex(x)

  Calculates the shake_256 sum of a file; returns hex-encoded

pwnlib.util.hashes.shake_256sum(x)

  Calculates the shake_256 sum of a string

pwnlib.util.hashes.shake_256sumhex(x)

  Calculates the shake_256 sum of a string; returns hex-encoded