1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 19:52:20 +02:00
Files
archived-php-src/ext/hash
Stanislav Malyshev 3fe509443c Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
  fix unit tests
2015-09-01 12:24:14 -07:00
..
2015-09-01 12:24:14 -07:00
2013-08-09 11:47:25 +02:00
2013-08-06 22:49:56 +02:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-04-14 01:05:01 -07:00
2013-08-06 22:49:56 +02:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00
2015-01-15 23:26:37 +08:00

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.