Annotation of embedaddon/php/ext/hash/README, revision 1.1.1.1
1.1 misho 1: Generic hashing framework for PHP
2:
3: Simplest usages:
4:
5: $digest = hash($algoname, $message);
6: $digest = hash_file($algoname, $filename);
7:
8: Examples:
9:
10: $digest = hash('md5', 'The quick brown fox jumped over the lazy dog.');
11:
12: Feeder usage:
13:
14: $context = hash_init($algoname);
15: hash_update($context, $message);
16: $digest = hash_final($context);
17:
18: hash(), hash_file(), and hash_final() each support an optional boolean parameter $raw_output which behaves in the same
19: manner as sha1()'s optional parameter.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>