1
0
mirror of https://github.com/php/doc-tr.git synced 2026-03-24 07:12:18 +01:00
Files
2024-09-07 17:38:58 +03:00

159 lines
4.3 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 539a9823a805ac29cab7fa4baf3ae3a28116a2f5 Maintainer: nilgun Status: ready -->
<refentry xml:id="function.hash" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>hash</refname>
<refpurpose>Bir ileti aşı üretir</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>hash</methodname>
<methodparam><type>string</type><parameter>algo</parameter></methodparam>
<methodparam><type>string</type><parameter>veri</parameter></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>ham_çıktı</parameter><initializer>&false;</initializer></methodparam>
<methodparam choice="opt"><type>array</type><parameter>seçenekler</parameter><initializer>[]</initializer></methodparam>
</methodsynopsis>
<para>
Bir ileti özeti üretir.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>algo</parameter></term>
<listitem>
<para>
Seçilen aşlama algoritmasının ismi (örn, <literal>"sha256"</literal>).
Desteklenen algoritmaların listesi
<function>hash_algos</function> işlevinde bulunabilir.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>veri</parameter></term>
<listitem>
<para>
Aşlanacak ileti.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>ham_çıktı</parameter></term>
<listitem>
<para>
&true; olduğu takdirde ham ikil veri çıktılanır, aksi takdirde
(&false;) küçük harfli onaltılıklar çıktılanır.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>seçenekler</parameter></term>
<listitem>
<para>
Çeşitli aşlama algoritmaları için seçenekleri içeren dizi. Şimdilik
sadece, MurmurHash türevleri <literal>"seed"</literal> bağımsız
değişkenini desteklemektedir.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Hesaplanan ileti aşını, <parameter>ham_çıktı</parameter> için &true;
belirtilmedikçe küçük harfli onaltılıklardan oluşan bir dizge olarak, aksi
takdirde ham ikil gösterimi içeren bir dizge olarak çıktılar.
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.1.0</entry>
<entry><parameter>seçenekler</parameter> bağımsız değişkeni eklendi.</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
<parameter>algo</parameter> bilinmiyorsa <function>hash</function>
işlevi artık bir <classname>ValueError</classname> istisnası
oluşturuyor; evvelce, &false; dönerdi.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>- <function>hash</function> örneği</title>
<programlisting role="php">
<![CDATA[
<?php
echo hash('sha256', 'Pijamalı hasta yağız şoföre çabucak güvendi.');
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
04eb8190a875ba9b6d05edbb0873e47ad41c48c2fac96e404040568868f3f20d
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>hash_init</function></member>
<member><function>hash_file</function></member>
<member><function>hash_hmac</function></member>
</simplelist>
</para>
</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:"~/.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
-->