Return to README CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / hash |
1.1 ! misho 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.