Module hash

Various hash and checksum functions

This module provides a selection of the most widely used checksum/hash algorithms:

CRC32, Adler32, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, MD2, MD4, MD5, Whirlpool, Tiger, RIPEMD128, RIPEMD160, RIPEMD256, RIPEMD320

Classes

Adler32Calculates a 32 bits long Adler32 checksum
CRC32Calculates a 32 bits long CRC32 checksum
HashBaseBase class for each hash algorithm, specialized for overloading.
MD2HashCalculates a 128 bits long MD2 (Message Digest 2) hash
MD4HashCalculates a 128 bits long MD4 (Message Digest 4) hash
MD5HashCalculates a 128 bits long MD5 (Message Digest 5) hash
RIPEMD128HashCalculates a 128 bits long RIPEMD-128 hash (RIPEMD family)
RIPEMD160HashCalculates a 160 bits long RIPEMD-160 hash (RIPEMD family)
RIPEMD256HashCalculates a 256 bits long RIPEMD-256 hash (RIPEMD family)
RIPEMD320HashCalculates a 320 bits long RIPEMD-320 hash (RIPEMD family)
SHA1HashCalculates a 160 bits long SHA-1 hash
SHA224HashCalculates a 224 bits long SHA-224 hash (SHA-2 family)
SHA256HashCalculates a 256 bits long SHA-256 hash (SHA-2 family)
SHA384HashCalculates a 384 bits long SHA-384 hash (SHA-2 family)
SHA512HashCalculates a 512 bits long SHA-512 hash (SHA-2 family)
TigerHashCalculates a 192 bits long Tiger hash
WhirlpoolHashCalculates a 512 bits long Whirlpool hash

All functions

adler32Convenience function that calculates a 32 bits long Adler32 checksum
crc32Convenience function that calculates a 32 bits long CRC32 checksum
getSupportedHashesReturns an array containing the names of all supported hashes.
hashConvenience function that calculates a hash.
hmacProvides HMAC authentication for a block of data
makeHashCreates a hash object based on the algorithm name
md2Convenience function that calculates a 128 bits long MD2 hash
md4Convenience function that calculates a 128 bits long MD4 hash
md5Convenience function that calculates a 128 bits long MD5 hash
ripemd128Convenience function that calculates a 128 bits long RIPEMD128 hash
ripemd160Convenience function that calculates a 160 bits long RIPEMD160 hash
ripemd256Convenience function that calculates a 256 bits long RIPEMD256 hash.
ripemd320Convenience function that calculates a 320 bits long RIPEMD320 hash
sha1Convenience function that calculates a 160 bits long SHA1 hash
sha224Convenience function that calculates a 224 bits long SHA224 hash
sha256Convenience function that calculates a 256 bits long SHA256 hash
sha384Convenience function that calculates a 384 bits long SHA384 hash
sha512Convenience function that calculates a 512 bits long SHA512 hash
tigerConvenience function that calculates a 192 bits long Tiger hash
whirlpoolConvenience function that calculates a 512 bits long Whirlpool hash

Groups

checksumsClasses providing checksum functions
strong_hashesClasses providing strong hashes, suitable for cryptography
weak_hashesClasses providing weak / deprecated hashes

Made with faldoc 2.2.1