1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 12:13:02 +02:00
Files
archived-php-src/ext/hash
Gabriel Caruso 6400264856 Trailing whitespaces
Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
2018-01-03 14:38:00 +01:00
..
2018-01-03 14:38:00 +01:00
2017-05-28 21:15:52 +02:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +08:00
2018-01-02 12:57:58 +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.