8053 beefd0184a 2022-08-08 ct_chen 2 年之前
..
tests beefd0184a 2022-08-08 ct_chen 2 年之前
CREDITS beefd0184a 2022-08-08 ct_chen 2 年之前
README beefd0184a 2022-08-08 ct_chen 2 年之前
bench.php beefd0184a 2022-08-08 ct_chen 2 年之前
config.m4 beefd0184a 2022-08-08 ct_chen 2 年之前
config.w32 beefd0184a 2022-08-08 ct_chen 2 年之前
hash.c beefd0184a 2022-08-08 ct_chen 2 年之前
hash_adler32.c beefd0184a 2022-08-08 ct_chen 2 年之前
hash_crc32.c beefd0184a 2022-08-08 ct_chen 2 年之前
hash_fnv.c beefd0184a 2022-08-08 ct_chen 2 年之前
hash_gost.c beefd0184a 2022-08-08 ct_chen 2 年之前
hash_haval.c beefd0184a 2022-08-08 ct_chen 2 年之前
hash_joaat.c beefd0184a 2022-08-08 ct_chen 2 年之前
hash_md.c beefd0184a 2022-08-08 ct_chen 2 年之前
hash_ripemd.c beefd0184a 2022-08-08 ct_chen 2 年之前
hash_sha.c beefd0184a 2022-08-08 ct_chen 2 年之前
hash_snefru.c beefd0184a 2022-08-08 ct_chen 2 年之前
hash_tiger.c beefd0184a 2022-08-08 ct_chen 2 年之前
hash_whirlpool.c beefd0184a 2022-08-08 ct_chen 2 年之前
package.xml beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash.h beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash_adler32.h beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash_crc32.h beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash_crc32_tables.h beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash_fnv.h beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash_gost.h beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash_gost_tables.h beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash_haval.h beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash_joaat.h beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash_md.h beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash_ripemd.h beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash_sha.h beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash_snefru.h beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash_snefru_tables.h beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash_tiger.h beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash_tiger_tables.h beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash_whirlpool.h beefd0184a 2022-08-08 ct_chen 2 年之前
php_hash_whirlpool_tables.h beefd0184a 2022-08-08 ct_chen 2 年之前

README

Generic hashing framework for PHP

Simplest usages:

$digest = hash($algoname, $message);
$digest = hash_file($algoname, $filename);

Examples:

$digest = hash('md5', 'The quick brown fox jumped over the lazy dog.');

Feeder usage:

$context = hash_init($algoname);
hash_update($context, $message);
$digest = hash_final($context);

hash(), hash_file(), and hash_final() each support an optional boolean parameter $raw_output which behaves in the same
manner as sha1()'s optional parameter.