summaryrefslogtreecommitdiff
path: root/ext/hash/README
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-12-02 01:59:48 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-12-02 01:59:48 +0000
commit950de078898f49fddbf866c7612e2c65c4ccd43a (patch)
tree315c7c5f5a3895c475d6592a9bb247932bcf407e /ext/hash/README
parent20c3b72bf0ca9569703004c65395b55495e7bdc6 (diff)
downloadphp-git-950de078898f49fddbf866c7612e2c65c4ccd43a.tar.gz
Added hash extension to PHP 5.1
Diffstat (limited to 'ext/hash/README')
-rw-r--r--ext/hash/README19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/hash/README b/ext/hash/README
new file mode 100644
index 0000000000..97eb206d02
--- /dev/null
+++ b/ext/hash/README
@@ -0,0 +1,19 @@
+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.