File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / hash / README
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:56 2012 UTC (13 years, 1 month ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

    1: Generic hashing framework for PHP
    2: 
    3: Simplest usages:
    4: 
    5: $digest = hash($algoname, $message);
    6: $digest = hash_file($algoname, $filename);
    7: 
    8: Examples:
    9: 
   10: $digest = hash('md5', 'The quick brown fox jumped over the lazy dog.');
   11: 
   12: Feeder usage:
   13: 
   14: $context = hash_init($algoname);
   15: hash_update($context, $message);
   16: $digest = hash_final($context);
   17: 
   18: hash(), hash_file(), and hash_final() each support an optional boolean parameter $raw_output which behaves in the same 
   19: manner as sha1()'s optional parameter.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>