|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<!-- EN-Revision: 71e12e2df7b0bcf0dc2743681b73790ac0d45ccc Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara --> |
| 3 | +<refentry xml:id="function.hash-algos" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 4 | + <refnamediv> |
| 5 | + <refname>hash_algos</refname> |
| 6 | + <refpurpose>Retorna uma lista de algoritmos de hash registrados</refpurpose> |
| 7 | + </refnamediv> |
| 8 | + <refsect1 role="description"> |
| 9 | + &reftitle.description; |
| 10 | + <methodsynopsis> |
| 11 | + <type>array</type><methodname>hash_algos</methodname> |
| 12 | + <void/> |
| 13 | + </methodsynopsis> |
| 14 | + </refsect1> |
| 15 | + |
| 16 | + <refsect1 role="parameters"> |
| 17 | + &reftitle.parameters; |
| 18 | + &no.function.parameters; |
| 19 | + </refsect1> |
| 20 | + |
| 21 | + <refsect1 role="returnvalues"> |
| 22 | + &reftitle.returnvalues; |
| 23 | + <para> |
| 24 | + Retorna um array indexado numericamente contendo a lista de algoritmos de |
| 25 | + hash suportados. |
| 26 | + </para> |
| 27 | + </refsect1> |
| 28 | + |
| 29 | + <refsect1 role="changelog"><!-- {{{ --> |
| 30 | + &reftitle.changelog; |
| 31 | + <para> |
| 32 | + <informaltable> |
| 33 | + <tgroup cols="2"> |
| 34 | + <thead> |
| 35 | + <row> |
| 36 | + <entry>&Version;</entry> |
| 37 | + <entry>&Description;</entry> |
| 38 | + </row> |
| 39 | + </thead> |
| 40 | + <tbody> |
| 41 | + <row> |
| 42 | + <entry>8.1.0</entry> |
| 43 | + <entry> |
| 44 | + Foi adicionado suporte para algoritmos MurmurHash3 e xxHash. |
| 45 | + </entry> |
| 46 | + </row> |
| 47 | + <row> |
| 48 | + <entry>7.4.0</entry> |
| 49 | + <entry> |
| 50 | + Foi adicionado suporte para crc32c. |
| 51 | + </entry> |
| 52 | + </row> |
| 53 | + <row> |
| 54 | + <entry>7.1.0</entry> |
| 55 | + <entry> |
| 56 | + Suporte para sha512/224, sha512/256, sha3-224, sha3-256, sha3-384 e |
| 57 | + sha3-512 foi adicionado. |
| 58 | + </entry> |
| 59 | + </row> |
| 60 | + </tbody> |
| 61 | + </tgroup> |
| 62 | + </informaltable> |
| 63 | + </para> |
| 64 | + </refsect1><!-- }}} --> |
| 65 | + |
| 66 | + <refsect1 role="examples"> |
| 67 | + &reftitle.examples; |
| 68 | + <para> |
| 69 | + <example> |
| 70 | + <title>Exemplo de <function>hash_algos</function></title> |
| 71 | + <para> |
| 72 | + A partir do PHP 8.1.0, <function>hash_algos</function> retornará a |
| 73 | + seguinte lista de nomes de algoritmos. |
| 74 | + </para> |
| 75 | + <programlisting role="php"> |
| 76 | +<![CDATA[ |
| 77 | +<?php |
| 78 | +print_r(hash_algos()); |
| 79 | +?> |
| 80 | +]]> |
| 81 | + </programlisting> |
| 82 | + &example.outputs.similar; |
| 83 | + <screen> |
| 84 | +<![CDATA[ |
| 85 | +Array |
| 86 | +( |
| 87 | + [0] => md2 |
| 88 | + [1] => md4 |
| 89 | + [2] => md5 |
| 90 | + [3] => sha1 |
| 91 | + [4] => sha224 |
| 92 | + [5] => sha256 |
| 93 | + [6] => sha384 |
| 94 | + [7] => sha512/224 |
| 95 | + [8] => sha512/256 |
| 96 | + [9] => sha512 |
| 97 | + [10] => sha3-224 |
| 98 | + [11] => sha3-256 |
| 99 | + [12] => sha3-384 |
| 100 | + [13] => sha3-512 |
| 101 | + [14] => ripemd128 |
| 102 | + [15] => ripemd160 |
| 103 | + [16] => ripemd256 |
| 104 | + [17] => ripemd320 |
| 105 | + [18] => whirlpool |
| 106 | + [19] => tiger128,3 |
| 107 | + [20] => tiger160,3 |
| 108 | + [21] => tiger192,3 |
| 109 | + [22] => tiger128,4 |
| 110 | + [23] => tiger160,4 |
| 111 | + [24] => tiger192,4 |
| 112 | + [25] => snefru |
| 113 | + [26] => snefru256 |
| 114 | + [27] => gost |
| 115 | + [28] => gost-crypto |
| 116 | + [29] => adler32 |
| 117 | + [30] => crc32 |
| 118 | + [31] => crc32b |
| 119 | + [32] => crc32c |
| 120 | + [33] => fnv132 |
| 121 | + [34] => fnv1a32 |
| 122 | + [35] => fnv164 |
| 123 | + [36] => fnv1a64 |
| 124 | + [37] => joaat |
| 125 | + [38] => murmur3a |
| 126 | + [39] => murmur3c |
| 127 | + [40] => murmur3f |
| 128 | + [41] => xxh32 |
| 129 | + [42] => xxh64 |
| 130 | + [43] => xxh3 |
| 131 | + [44] => xxh128 |
| 132 | + [45] => haval128,3 |
| 133 | + [46] => haval160,3 |
| 134 | + [47] => haval192,3 |
| 135 | + [48] => haval224,3 |
| 136 | + [49] => haval256,3 |
| 137 | + [50] => haval128,4 |
| 138 | + [51] => haval160,4 |
| 139 | + [52] => haval192,4 |
| 140 | + [53] => haval224,4 |
| 141 | + [54] => haval256,4 |
| 142 | + [55] => haval128,5 |
| 143 | + [56] => haval160,5 |
| 144 | + [57] => haval192,5 |
| 145 | + [58] => haval224,5 |
| 146 | + [59] => haval256,5 |
| 147 | +) |
| 148 | +]]> |
| 149 | + </screen> |
| 150 | + </example> |
| 151 | + </para> |
| 152 | + </refsect1> |
| 153 | + |
| 154 | + <refsect1 role="seealso"><!-- {{{ --> |
| 155 | + &reftitle.seealso; |
| 156 | + <simplelist> |
| 157 | + <member><function>hash</function></member> |
| 158 | + <member><function>hash_hmac_algos</function></member> |
| 159 | + </simplelist> |
| 160 | + </refsect1><!-- }}} --> |
| 161 | + |
| 162 | +</refentry> |
| 163 | + |
| 164 | +<!-- Keep this comment at the end of the file |
| 165 | +Local variables: |
| 166 | +mode: sgml |
| 167 | +sgml-omittag:t |
| 168 | +sgml-shorttag:t |
| 169 | +sgml-minimize-attributes:nil |
| 170 | +sgml-always-quote-attributes:t |
| 171 | +sgml-indent-step:1 |
| 172 | +sgml-indent-data:t |
| 173 | +indent-tabs-mode:nil |
| 174 | +sgml-parent-document:nil |
| 175 | +sgml-default-dtd-file:"~/.phpdoc/manual.ced" |
| 176 | +sgml-exposed-tags:nil |
| 177 | +sgml-local-catalogs:nil |
| 178 | +sgml-local-ecat-files:nil |
| 179 | +End: |
| 180 | +vim600: syn=xml fen fdm=syntax fdl=2 si |
| 181 | +vim: et tw=78 syn=sgml |
| 182 | +vi: ts=1 sw=1 |
| 183 | +--> |
0 commit comments