Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 10865

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>hash Functions</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="函数参考"
HREF="funcref.html"><LINK
REL="PREVIOUS"
TITLE="HaruPage::textRect"
HREF="function.harupage-textrect.html"><LINK
REL="NEXT"
TITLE="hash_algos"
HREF="function.hash-algos.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="reference"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.harupage-textrect.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.hash-algos.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.hash"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>LIV. hash Functions</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN73413"
></A
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="hash.intro"
>简介</A
></H1
><P
>&#13;    Message Digest (hash) engine.  Allows direct or incremental processing
    of arbitrary length messages using a variety of hashing algorithms.
   </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="hash.requirements"
>需求</A
></H1
><P
>&#13;    The Hash extension requires no external libraries and is enabled by
    default as of PHP 5.1.2.  It may be explicitly disabled by using the
    --disable-hash switch to configure.  Earlier versions of PHP may
    incorporate the Hash extension by installing the
    <A
HREF="http://pecl.php.net/package/hash"
TARGET="_top"
>PECL module</A
>.
   </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="hash.resources"
>资源类型</A
></H1
><P
>&#13;    This extension defines a Hashing Context resource returned by
    <A
HREF="function.hash-init.html"
><B
CLASS="function"
>hash_init()</B
></A
>.
   </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="hash.constants"
>预定义常量</A
></H1
><P
>以下常量由本扩展模块定义,因此只有在本扩展模块被编译到
PHP 中,或者在运行时被动态加载后才有效。</P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><TT
CLASS="constant"
><B
>HASH_HMAC</B
></TT
>
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     Optional flag for <A
HREF="function.hash-init.html"
><B
CLASS="function"
>hash_init()</B
></A
>.
     Indicates that the HMAC digest-keying algorithm should be
     applied to the current hashing context.
    </P
></DD
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>目录</B
></DT
><DT
><A
HREF="function.hash-algos.html"
>hash_algos</A
>&nbsp;--&nbsp;Return a list of registered hashing algorithms</DT
><DT
><A
HREF="function.hash-file.html"
>hash_file</A
>&nbsp;--&nbsp;Generate a hash value using the contents of a given file</DT
><DT
><A
HREF="function.hash-final.html"
>hash_final</A
>&nbsp;--&nbsp;Finalize an incremental hash and return resulting digest</DT
><DT
><A
HREF="function.hash-hmac-file.html"
>hash_hmac_file</A
>&nbsp;--&nbsp;Generate a keyed hash value using the HMAC method and the contents of a given file</DT
><DT
><A
HREF="function.hash-hmac.html"
>hash_hmac</A
>&nbsp;--&nbsp;Generate a keyed hash value using the HMAC method</DT
><DT
><A
HREF="function.hash-init.html"
>hash_init</A
>&nbsp;--&nbsp;Initialize an incremental hashing context</DT
><DT
><A
HREF="function.hash-update-file.html"
>hash_update_file</A
>&nbsp;--&nbsp;Pump data into an active hashing context from a file</DT
><DT
><A
HREF="function.hash-update-stream.html"
>hash_update_stream</A
>&nbsp;--&nbsp;Pump data into an active hashing context from an open stream</DT
><DT
><A
HREF="function.hash-update.html"
>hash_update</A
>&nbsp;--&nbsp;Pump data into an active hashing context</DT
><DT
><A
HREF="function.hash.html"
>hash</A
>&nbsp;--&nbsp;Generate a hash value (message digest)</DT
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.harupage-textrect.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.hash-algos.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>HaruPage::textRect</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="funcref.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>hash_algos</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>