reference/strings/functions/sha1.xml
e095023e408c8cb6378ae16bb6870343a3946919
...
...
@@ -14,11 +14,11 @@
14
14
&reftitle.description;
15
15
<methodsynopsis>
16
16
<type>string</type><methodname>sha1</methodname>
17
-
<methodparam><type>string</type><parameter>str</parameter></methodparam>
18
-
<methodparam choice="opt"><type>bool</type><parameter>raw_output</parameter><initializer>&false;</initializer></methodparam>
17
+
<methodparam><type>string</type><parameter>string</parameter></methodparam>
18
+
<methodparam choice="opt"><type>bool</type><parameter>binary</parameter><initializer>&false;</initializer></methodparam>
19
19
</methodsynopsis>
20
20
<simpara>
21
-
Calculates the sha1 hash of <parameter>str</parameter> using the
21
+
Calculates the sha1 hash of <parameter>string</parameter> using the
22
22
<link xlink:href="&url.rfc;3174">US Secure Hash Algorithm 1</link>.
23
23
</simpara>
24
24
</refsect1>
...
...
@@ -28,7 +28,7 @@
28
28
<para>
29
29
<variablelist>
30
30
<varlistentry>
31
-
<term><parameter>str</parameter></term>
31
+
<term><parameter>string</parameter></term>
32
32
<listitem>
33
33
<para>
34
34
The input string.
...
...
@@ -36,10 +36,10 @@
36
36
</listitem>
37
37
</varlistentry>
38
38
<varlistentry>
39
-
<term><parameter>raw_output</parameter></term>
39
+
<term><parameter>binary</parameter></term>
40
40
<listitem>
41
41
<para>
42
-
If the optional <parameter>raw_output</parameter> is set to &true;,
42
+
If the optional <parameter>binary</parameter> is set to &true;,
43
43
then the sha1 digest is instead returned in raw binary format with a
44
44
length of 20, otherwise the returned value is a 40-character
45
45
hexadecimal number.
...
...
@@ -92,7 +92,6 @@ if (sha1($str) === 'd0be2dc421be4fcd0172e5afceea3970e2f3d940') {
92
92
</refsect1>
93
93

94
94
</refentry>
95
-

96
95
<!-- Keep this comment at the end of the file
97
96
Local variables:
98
97
mode: sgml
99
98