1
0
mirror of https://github.com/php/php-src.git synced 2026-04-15 03:51:07 +02:00
Files
Stanislav Malyshev 588db7cecf Always use ZEND_SECURE_ZERO() when cleaning up data
Optimizing compilers have an annoying tendency to throw out
memsets over data that they think aren't used anymore. Apply secure
zero-out in cases where this has potential to happen.
2019-04-06 18:15:42 -07:00
..
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +08:00
2018-01-02 12:53:31 +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.