1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/hash
Stanislav Malyshev d1d692abe7 Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
  Always use ZEND_SECURE_ZERO() when cleaning up data
  bump versions after release
2019-04-06 19:05:37 -07:00
..
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +08:00
2018-01-02 12:55:14 +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.