<!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="Manual do PHP" HREF="index.html"><LINK REL="UP" TITLE="Referência das Funções" 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" >Manual do PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.harupage-textrect.html" ACCESSKEY="P" >Anterior</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" >Próxima</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="AEN69273" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="hash.intro" >Introdução</A ></H1 ><P > 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" >Dependências</A ></H1 ><P > 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" >Tipos Resource</A ></H1 ><P > 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" >Constantes pré-definidas</A ></H1 ><P > As contantes abaixo são definidas por esta extensão e somente estarão disponíveis quando a extensão foi compilada com o PHP ou carregada dinamicamente durante a execução. </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 > 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 >Índice</B ></DT ><DT ><A HREF="function.hash-algos.html" >hash_algos</A > -- Return a list of registered hashing algorithms</DT ><DT ><A HREF="function.hash-file.html" >hash_file</A > -- Generate a hash value using the contents of a given file</DT ><DT ><A HREF="function.hash-final.html" >hash_final</A > -- Finalize an incremental hash and return resulting digest</DT ><DT ><A HREF="function.hash-hmac-file.html" >hash_hmac_file</A > -- 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 > -- Generate a keyed hash value using the HMAC method</DT ><DT ><A HREF="function.hash-init.html" >hash_init</A > -- Initialize an incremental hashing context</DT ><DT ><A HREF="function.hash-update-file.html" >hash_update_file</A > -- Pump data into an active hashing context from a file</DT ><DT ><A HREF="function.hash-update-stream.html" >hash_update_stream</A > -- Pump data into an active hashing context from an open stream</DT ><DT ><A HREF="function.hash-update.html" >hash_update</A > -- Pump data into an active hashing context</DT ><DT ><A HREF="function.hash.html" >hash</A > -- 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" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Principal</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.hash-algos.html" ACCESSKEY="N" >Próxima</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" >Acima</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >hash_algos</TD ></TR ></TABLE ></DIV ></BODY ></HTML >