cvs: phpdoc-pt_BR /reference/mhash reference.xml
| From: | Andr� Luis Ferreira da Silva Bacci | Date: | Sun, 15 Sep 2002 20:29:39 +0000 |
| Subject: | cvs: phpdoc-pt_BR /reference/mhash reference.xml | ||
| Groups: | php.doc.pt-br | ||
| Request: | Send a blank email to doc-pt-br+get-210@lists.php.net to get a copy of this message | ||
ae Sun Sep 15 16:29:39 2002 EDT
Modified files:
/phpdoc-pt_BR/reference/mhash reference.xml
Log:
weekend update
Index: phpdoc-pt_BR/reference/mhash/reference.xml
diff -u phpdoc-pt_BR/reference/mhash/reference.xml:1.3
phpdoc-pt_BR/reference/mhash/reference.xml:1.4
--- phpdoc-pt_BR/reference/mhash/reference.xml:1.3 Sat Apr 20 01:41:19 2002
+++ phpdoc-pt_BR/reference/mhash/reference.xml Sun Sep 15 16:29:38 2002
@@ -1,127 +1,91 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.2 Maintainer: rarruda Status: ready -->
-<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.4 Maintainer: ae Status: ready -->
<reference id="ref.mhash">
- <title>Mhash Functions</title>
+ <title>Mhash - Funções de hash</title>
<titleabbrev>mhash</titleabbrev>
-
+
<partintro>
- <para>
- Estas funções tem a intenção de funcionar com
- <ulink url="&url.mhash;">mhash</ulink>.</para>
- <para>
- Esta é uma interface para a biblioteca mhash. mhash suporta
- uma grande variedade de algoritmos hash como MD5, SHA1, GOST e
- vários outros.
- </para>
- <para>
- Para usalas, faça o download da distribuição mhash do <ulink
- url="&url.mhash;">web site deles</ulink> e siga as instruções
- de instalação inclusas. Você precisará compilar o PHP com o
- parametro <option role="configure">--with-mhash</option> para
- habilitar esta extensão.
- </para>
- <para>
- Mhash pode ser usado para criar checksums, message digests, códigos
- de autenticação e mais.
- </para>
- <para>
- <example>
- <title>Computar o MD5 digest e hmac e imprimir como hex</title>
- <programlisting role="php">
+ <section id="mhash.intro">
+ &reftitle.intro;
+ <para>
+ Essas funções são planejadas para trabalhar com <ulink
+ url="&url.mhash;">mhash</ulink>. Com o Mhash você pode criar
checksums,
+ digests de mensagens, códigos de autenticação de mensagens e mais.
+ </para>
+ <para>
+ Esta é uma interface para a biblioteca mhash. O mhash suporta uma grande
+ variedade de algoritmos de hash como MD5, SHA1, GOST e muitos
+ outros. Para uma lista completa das hashs suportadas, verifique a
+ documentação do mhash. A regra geral é: você pode acessar
+ o algoritmo de hash a partir do PHP com MHASH_NOMEdoHASH, Por exemplo, para
+ acessar o algoritmo TIGER, você utiliza a constante MHASH_TIGER.
+ </para>
+ </section>
+
+ <section id="mhash.requirements">
+ &reftitle.required;
+ <para>
+ Para usá-las, faça o download da distribuição do mhash em <ulink
+ url="&url.mhash;">&url.mhash;</ulink> e siga as instruções de
instalação
+ inclusas.
+ </para>
+ </section>
+
+ <section id="mhash.installation">
+ &reftitle.install;
+ <para>
+ Você precisará compilar o PHP com o parametro
+ <option role="configure">--with-mhash[=DIR]</option> para habilitar
+ esta extensão. DIR é o diretório de instalação do mhash.
+ </para>
+ </section>
+
+ <section id="mhash.configuration">
+ &reftitle.runtime;
+ &no.config;
+ </section>
+
+ <section id="mhash.resources">
+ &reftitle.resources;
+ &no.resource;
+ </section>
+
+ &reference.mhash.constants;
+
+ <section id="mhash.examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Calcular o MD5 digest e hmac e imprimir como hex</title>
+ <programlisting role="php">
<![CDATA[
<?php
-$input = "o que você quer por nada?";
+$input = "what do ya want for nothing?";
$hash = mhash (MHASH_MD5, $input);
-print "A hash é ".bin2hex ($hash)."\n<br>";
+print "A hash é ".bin2hex ($hash)."<br />\n";
$hash = mhash (MHASH_MD5, $input, "Jefe");
-print "A hmac é ".bin2hex ($hash)."\n<br>";
+print "A hmac é ".bin2hex ($hash)."<br />\n";
?>
]]>
- </programlisting>
- <para>
- Este código irá produzir:
- <screen>
+ </programlisting>
+ <para>
+ Este código irá produzir:
+ <screen>
<![CDATA[
-A hash é d03cb659cbf9192dcd066272249f8412
-A hmac é 750c783e6ab0b503eaa86e310a5db738
+A hash é d03cb659cbf9192dcd066272249f8412
+A hmac é 750c783e6ab0b503eaa86e310a5db738
]]>
- </screen>
- </para>
- </example>
- Para uma lista completa de hashes suportadas, refira-se para a
- documentação do mhash. A regra geral é que você pode acessar o
- algoritmo hash do PHP com MHASH_HASHNAME. Por exemplo, para
- accessar TIGER se usa a constante do PHP MHASH_TIGER.
- </para>
- <para>
- Aqui está a lista de hashes que são atualmente suportadas por mhash.
- Se uma hash não está listada aqui, mas é listada por mhash como
- suportada, você pode com seguranca presumir que esta documentação está
- desatualizada.
- <itemizedlist>
- <listitem>
- <simpara>
- MHASH_MD5
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- MHASH_SHA1
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- MHASH_HAVAL256
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- MHASH_HAVAL192
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- MHASH_HAVAL160
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- MHASH_HAVAL128
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- MHASH_RIPEMD160
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- MHASH_GOST
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- MHASH_TIGER
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- MHASH_CRC32
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- MHASH_CRC32B
- </simpara>
- </listitem>
- </itemizedlist>
- </para>
+ </screen>
+ </para>
+ </example>
+ </para>
+ </section>
+
</partintro>
&reference.mhash.functions;
- </reference>
+ </reference>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
@@ -131,6 +95,7 @@
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
+indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../manual.ced"
sgml-exposed-tags:nil