mirror of
https://github.com/php/doc-tr.git
synced 2026-03-24 07:12:18 +01:00
53 lines
1.3 KiB
XML
53 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- $Revision$ -->
|
||
<!-- EN-Revision: a164d01395d708bc698c1dc106dc141757aae89f Maintainer: nilgun Status: ready -->
|
||
<appendix xml:id="mhash.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||
&reftitle.examples;
|
||
<para>
|
||
<example>
|
||
<title>- Bir dizgenin MD5 ve HMAC aşlarını hesaplayıp sonuçları birer
|
||
onaltılık dizge olarak çıktılar</title>
|
||
<programlisting role="php">
|
||
<![CDATA[
|
||
<?php
|
||
$girdi = "what do ya want for nothing?";
|
||
$aş = mhash(MHASH_MD5, $girdi);
|
||
echo "MD5 aşı: " . bin2hex($aş) . "<br />\n";
|
||
$aş = mhash(MHASH_MD5, $girdi, "Jefe");
|
||
echo "HMAC aşı: " . bin2hex($aş) . "<br />\n";
|
||
?>
|
||
]]>
|
||
</programlisting>
|
||
&example.outputs;
|
||
<screen>
|
||
<![CDATA[
|
||
MD5 aşı: d03cb659cbf9192dcd066272249f8412
|
||
HMAC aşı: 750c783e6ab0b503eaa86e310a5db738
|
||
]]>
|
||
</screen>
|
||
</example>
|
||
</para>
|
||
</appendix>
|
||
|
||
<!-- Keep this comment at the end of the file
|
||
Local variables:
|
||
mode: sgml
|
||
sgml-omittag:t
|
||
sgml-shorttag:t
|
||
sgml-minimize-attributes:nil
|
||
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:"~/.phpdoc/manual.ced"
|
||
sgml-exposed-tags:nil
|
||
sgml-local-catalogs:nil
|
||
sgml-local-ecat-files:nil
|
||
End:
|
||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||
vim: et tw=78 syn=sgml
|
||
vi: ts=1 sw=1
|
||
-->
|
||
|