1
0
mirror of https://github.com/php/doc-de.git synced 2026-04-24 23:48:12 +02:00
Files
archived-doc-de/reference/strings/functions/sha1.xml
T
Carola 'Sammy' Kummert b1cab7c83c addcslashes.xml: updated to en version 1.7
sha1.xml:         initial translation
sha1-file.xml:    initial translation
str-ireplace.xml: initial translation
str-shuffle.xml:  initial translation


git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@185173 c90b9560-bf6c-de11-be94-00142212c4b1
2005-04-26 12:00:23 +00:00

76 lines
2.2 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.7 Maintainer: sammywg Status: working -->
<refentry id="function.sha1">
<refnamediv>
<refname>sha1</refname>
<refpurpose>Berechnet den SHA1 Hash eines Strings</refpurpose>
</refnamediv>
<refsect1>
<title>Beschreibung</title>
<methodsynopsis>
<type>string</type><methodname>sha1</methodname>
<methodparam><type>string</type><parameter>str</parameter></methodparam>
<methodparam choice='opt'><type>bool</type><parameter>raw_output</parameter></methodparam>
</methodsynopsis>
<simpara>
Berechnet den SHA1 Hash von <parameter>str</parameter> unter Verwendung des
<ulink url="&url.rfc;3174">US Secure Hash Algorithmus 1</ulink>
und gibt den Hashwert zurück. Der Hash ist ein 40 Zeichen langer
Hexadezimalwert.
Ist der optionale Parameter <parameter>raw_output</parameter> &true;,
wird der SHA1-Extrakt im Raw-Binary-Format mit einer Länge von 20
Zeichen zurückgegeben.
</simpara>
<note>
<simpara>
Der optionale Parameter <parameter>raw_output</parameter> wurde in PHP 5.0.0
eingeführt und hat den Standardwert &false;.
</simpara>
</note>
<para>
<example>
<title>Ein <function>sha1</function> Beispiel</title>
<programlisting role="php">
<![CDATA[
<?php
$str = 'Apfel';
if (sha1($str) === 'df589122eac0f6a7bd8795436e692e3675cadc3b') {
echo "Hätten Sie gern einen grünen oder einen roten Apfel?";
exit;
}
?>
]]>
</programlisting>
</example>
</para>
<simpara>
Siehe auch <function>sha1_file</function>,
<function>crc32</function> und
<function>md5</function>
</simpara>
</refsect1>
</refentry>
<!-- 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:"../../../../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
-->