xref: /PHP-5.5/ext/hash/README (revision 950de078)
1Generic hashing framework for PHP
2
3Simplest usages:
4
5$digest = hash($algoname, $message);
6$digest = hash_file($algoname, $filename);
7
8Examples:
9
10$digest = hash('md5', 'The quick brown fox jumped over the lazy dog.');
11
12Feeder usage:
13
14$context = hash_init($algoname);
15hash_update($context, $message);
16$digest = hash_final($context);
17
18hash(), hash_file(), and hash_final() each support an optional boolean parameter $raw_output which behaves in the same
19manner as sha1()'s optional parameter.
20