1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 09:42:22 +01:00
Files
archived-php-src/ext/hash
Grundik eac8166bd4 Fix bug #73127
gost-crypto hash was incorrect if input data contained long 0xFF
sequence, due to a carry-propagation bug.
2017-02-24 23:20:49 +01:00
..
2017-02-24 23:20:49 +01:00
2013-08-09 11:47:25 +02:00
2013-08-06 22:49:56 +02:00
2017-01-04 11:14:55 -06:00
2017-01-04 11:14:55 -06:00
2017-02-24 23:20:49 +01:00
2017-01-04 11:14:55 -06:00
2017-01-04 11:14:55 -06:00
2017-01-04 11:14:55 -06:00
2017-01-04 11:14:55 -06:00
2017-01-04 11:14:55 -06:00
2017-01-04 11:14:55 -06:00
2017-01-04 11:14:55 -06:00
2017-01-30 08:57:17 -08:00
2013-08-06 22:49:56 +02:00
2017-01-04 11:14:55 -06:00
2017-01-04 11:14:55 -06: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.