mirror of
https://github.com/php/doc-ru.git
synced 2025-07-21 23:23:20 +00:00
docs(ru): Updated to English revision
git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@349908 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: b21947c4f739fc2cf52da1f0e7c0c33e97581121 Maintainer: rjhdby Status: ready -->
|
||||
<!-- EN-Revision: c9596f7576ae7b476b9592522320f0f53ce1c0c0 Maintainer: rjhdby Status: ready -->
|
||||
<!-- Reviewed: yes -->
|
||||
|
||||
<appendix xml:id="password.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
@ -12,7 +12,7 @@
|
||||
<varlistentry xml:id="constant.password-bcrypt">
|
||||
<term>
|
||||
<constant>PASSWORD_BCRYPT</constant>
|
||||
(<type>integer</type>)
|
||||
(<type>string</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
@ -57,7 +57,7 @@
|
||||
<varlistentry xml:id="constant.password-argon2i">
|
||||
<term>
|
||||
<constant>PASSWORD_ARGON2I</constant>
|
||||
(<type>integer</type>)
|
||||
(<type>string</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
@ -98,17 +98,17 @@
|
||||
<varlistentry xml:id="constant.password-argon2id">
|
||||
<term>
|
||||
<constant>PASSWORD_ARGON2ID</constant>
|
||||
(<type>integer</type>)
|
||||
(<type>string</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
<constant>PASSWORD_ARGON2ID</constant> используется для создания хешей паролей
|
||||
с помощью алгоритма Argon2id. Поддерживаются те же опции, что и для
|
||||
<link linkend="constant.password-argon2i"><constant>PASSWORD_ARGON2I</constant></link>.
|
||||
</para>
|
||||
<para>
|
||||
Доступно с PHP 7.3.0.
|
||||
</para>
|
||||
с помощью алгоритма Argon2id. Поддерживаются те же опции, что и для
|
||||
<link linkend="constant.password-argon2i"><constant>PASSWORD_ARGON2I</constant></link>.
|
||||
</para>
|
||||
<para>
|
||||
Доступно с PHP 7.3.0.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.password-argon2-default-memory-cost">
|
||||
@ -157,7 +157,7 @@
|
||||
<varlistentry xml:id="constant.password-default">
|
||||
<term>
|
||||
<constant>PASSWORD_DEFAULT</constant>
|
||||
(<type>integer</type>)
|
||||
(<type>mixed</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
@ -184,6 +184,33 @@
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
|
||||
<formalpara>
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>7.4.0</entry>
|
||||
<entry>
|
||||
Значения идентификаторов алгоритма пароля (<constant>PASSWORD_BCRYPT</constant>, <constant>PASSWORD_ARGON2I</constant>,
|
||||
<constant>PASSWORD_ARGON2ID</constant> и <constant>PASSWORD_DEFAULT</constant>) теперь являются строками (&string;).
|
||||
Ранее они были числами (&integer;).
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</formalpara>
|
||||
|
||||
</appendix>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 0b7542c9e336ff5d7731d5f808aed628d5a8b96d Maintainer: rjhdby Status: ready -->
|
||||
<!-- EN-Revision: c9596f7576ae7b476b9592522320f0f53ce1c0c0 Maintainer: rjhdby Status: ready -->
|
||||
<!-- Reviewed: yes -->
|
||||
|
||||
<refentry xml:id="function.password-hash" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
@ -14,7 +14,7 @@
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>password_hash</methodname>
|
||||
<methodparam><type>string</type><parameter>password</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>algo</parameter></methodparam>
|
||||
<methodparam><type>mixed</type><parameter>algo</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
@ -357,6 +357,13 @@ echo 'Хеш Argon2i: ' . password_hash('rasmuslerdorf', PASSWORD_ARGON2I);
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>7.4.0</entry>
|
||||
<entry>
|
||||
Параметр <parameter>algo</parameter> сейчас ожидает строку (&string;), но все еще принимает
|
||||
число (&integer;) для обратной совместимости.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>7.3.0</entry>
|
||||
<entry>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: be295015d068095fc92880baef4e47038646adbd Maintainer: rjhdby Status: ready -->
|
||||
<!-- EN-Revision: c9596f7576ae7b476b9592522320f0f53ce1c0c0 Maintainer: rjhdby Status: ready -->
|
||||
<!-- Reviewed: yes -->
|
||||
|
||||
<refentry xml:id="function.password-needs-rehash" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
@ -14,7 +14,7 @@
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>password_needs_rehash</methodname>
|
||||
<methodparam><type>string</type><parameter>hash</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>algo</parameter></methodparam>
|
||||
<methodparam><type>mixed</type><parameter>algo</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
@ -94,6 +94,32 @@ if (password_verify($password, $hash)) {
|
||||
или &false;, если нет.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>7.4.0</entry>
|
||||
<entry>
|
||||
Параметр <parameter>algo</parameter> сейчас ожидает строку (&string;), но все еще принимает
|
||||
число (&integer;) для обратной совместимости.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
Reference in New Issue
Block a user