mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Some cosmetic changes
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@11011 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d19926bf81
commit
aa701601e0
1 changed files with 10 additions and 8 deletions
|
@ -4,21 +4,22 @@
|
|||
|
||||
<partintro>
|
||||
<para>
|
||||
These functions are work using <ulink url="&url.mhash;">mhash</ulink>.
|
||||
These functions are intended to work with <ulink
|
||||
url="&url.mhash;">mhash</ulink>.
|
||||
|
||||
<para>
|
||||
This is an interface to the mhash library. mhash supports a wide variety of
|
||||
hash algorithms such as MD5, SHA1, GOST and many others.
|
||||
hash algorithms such as MD5, SHA1, GOST, and many others.
|
||||
|
||||
<para>
|
||||
To use it, download mhash-x.x.x.tar.gz from <ulink
|
||||
url="&url.mhash;">here</ulink> and follow the included
|
||||
To use it, download the mhash distribution from <ulink
|
||||
url="&url.mhash;">its web site</ulink> and follow the included
|
||||
installation instructions. You need to compile PHP with the <option
|
||||
role="configure">--with-mhash</option> parameter to enable this
|
||||
extension.
|
||||
|
||||
<para>
|
||||
mhash can be used to create checksums, message digests and more.
|
||||
mhash can be used to create checksums, message digests, and more.
|
||||
|
||||
<para>
|
||||
<example>
|
||||
|
@ -40,9 +41,10 @@ print "The hash is ".bin2hex($hash)."\n";
|
|||
The hash is d3b85d710d8f6e4e5efd4d5e67d041f9cecedafe
|
||||
</programlisting>
|
||||
|
||||
For a complete list of supported hashes, see the documentation of mhash.
|
||||
The general rule is that you can access the hash from PHP with
|
||||
MHASH_HASHNAME.
|
||||
For a complete list of supported hashes, refer to the documentation of
|
||||
mhash. The general rule is that you can access the hash algorithm from PHP
|
||||
with MHASH_HASHNAME. For example, to access HAVAL you use the PHP constant
|
||||
MHASH_HAVAL.
|
||||
|
||||
<para>
|
||||
Here is a list of hashes which are currently supported by mhash. If a
|
||||
|
|
Loading…
Reference in a new issue