diff --git a/functions/mhash.xml b/functions/mhash.xml index 289495bdbd..65d8da77b1 100644 --- a/functions/mhash.xml +++ b/functions/mhash.xml @@ -1,54 +1,61 @@ - Mhash Functions + Mhash függvények mhash - These functions are intended to work with mhash. - - This is an interface to the mhash library. mhash supports a wide - variety of hash algorithms such as MD5, SHA1, GOST, and many - others. + Ezek a függvények az mhash-el + működnek együtt. - To use it, download the mhash distribution from its web site and follow the included - installation instructions. You need to compile PHP with the - parameter to enable - this extension. + Ezek egy felületet biztosítanak az mhash könyvtárhoz. Az mhash + széles skáláját támogatja a hash algoritmusoknak, mint például + az MD5, SHA1, GOST és számos más. - Mhash can be used to create checksums, message digests, message - authentication codes, and more. + Ahhoz, hogy használhasd ezeket, le kell töltened az mhash + csomagot az mhash webhelyről + és követned kell a telepítési utasításokat, amiket a csomagban + találsz. A PHP-t a + paraméterrel kell fordítanod, hogy engedélyezd ezt a kiterjesztést. + + + Az mhash például ellenőrzőösszegek, kivonatok, azonosítási kódok + előállítására is használható. - Compute the MD5 digest and hmac and print it out as hex + Az MD5 kivonat és a hmac előállítása és kiírása hexa formában -<?php +"; $hash = mhash (MHASH_MD5, $input, "Jefe"); print "The hmac is ".bin2hex ($hash)."\n<br>"; -?> +?> +]]> - This will produce: + Ez a következő kimenetet eredményezi: + - For a complete list of supported hashes, refer to the - documentation of mhash. The general rule is that you can access - the hash algorithm from PHP with MHASH_HASHNAME. For example, to - access TIGER you use the PHP constant MHASH_TIGER. + A támogatott hash-ek teljes listájához nézd meg az + mhash dokumentációt. Az általános szabály, hogy a hash + algoritmust az MHASH_HASHNEVE formában tudod elérni + PHP-ből. Például a TIGER eléréséhez az MHASH_TIGER + PHP konstans használható. - Here is a list of hashes which are currently supported by mhash. If a - hash is not listed here, but is listed by mhash as supported, you can - safely assume that this documentation is outdated. + Itt következnek az mhash által jelenleg támogatott hash-ek. + Ha találsz az mhash dokumentációban itt nem listázott elemet, + nyugodtan feltételezheted, hogy az használható, és ez a dokumentáció + nem aktuális. @@ -112,10 +119,10 @@ The hmac is 750c783e6ab0b503eaa86e310a5db738 mhash_get_hash_name - Get the name of the specified hash + A megadott hash nevét adja vissza - Description + Leírás string mhash_get_hash_name @@ -123,26 +130,27 @@ The hmac is 750c783e6ab0b503eaa86e310a5db738 - Mhash_get_hash_name is used to get the name - of the specified hash. + Az mhash_get_hash_name a megadott hash nevével + tér vissza. - mhash_get_hash_name takes the hash id as an - argument and returns the name of the hash or false, if the hash - does not exist. + Ha az mhash_get_hash_name függvénynek átadott + hash azonosító egy nemlétező hash-re hivatkozik, FALSE értékkel tér vissza. - <function>Mhash_get_hash_name</function> Example + <function>mhash_get_hash_name</function> példa -<?php + +]]> - The above example will print out: + Ez a következő kimenetet eredményezi: MD5 @@ -153,10 +161,10 @@ MD5 mhash_get_block_size - Get the block size of the specified hash + A megadott hash blokkméretével tér vissza - Description + Leírás int mhash_get_block_size @@ -164,13 +172,14 @@ MD5 - Mhash_get_block_size is used to get the size - of a block of the specified hash. + Az mhash_get_block_size a megadott + hash blokkméretét adja vissza + byte-okban mérve. - Mhash_get_block_size takes one argument, the - hash and returns the size in bytes or - false, if the hash does not exist. + Ha az mhash_get_block_size + függvénynek érvénytelen hash + paramétert adsz, FALSE értékkel tér vissza. @@ -178,10 +187,10 @@ MD5 mhash_count - Get the highest available hash id + Visszaadja a legnagyobb elérhető hash azonosítót - Description + Leírás int mhash_count @@ -189,14 +198,16 @@ MD5 - Mhash_count returns the highest available hash - id. Hashes are numbered from 0 to this hash id. + Az mhash_count visszaadja a legnagyobb elérhető + hash azonosítót. A hash-ek nullától eddig a számig kapnak + azonosító számokat. - Traversing all hashes + Az összes hash használata -<?php + @@ -215,10 +226,10 @@ for ($i = 0; $i <= $nr; $i++) { mhash - Compute hash + Hash számítás - Description + Leírás string mhash @@ -228,13 +239,14 @@ for ($i = 0; $i <= $nr; $i++) { - Mhash applies a hash function specified by - hash to the data and - returns the resulting hash (also called digest). If the key - is specified it will return the resulting HMAC. HMAC is keyed hashing - for message authentication, or simply a message digest that depends on - the specified key. Not all algorithms supported in mhash can be used in - HMAC mode. In case of an error returns false. + Az mhash alkalmazza a hash + által megadott algoritmust a data paraméterre, és + visszatér az eredmény hash-el (amit kivonatkank [digest-nek] is hívnak). + Ha a key paramétert is megadod, visszaadja + az keletkező HMAC-ot. A HMAC egy kulcsos hash-elés üzenet azonosításra, + vagy csak egyszerűen egy üzenet kivonat ami egy megadott kulcstól + függ. Nem minden mhash algoritmus használható HMAC módban. + Hiba esetén a függvény FALSE értéket ad. @@ -242,10 +254,10 @@ for ($i = 0; $i <= $nr; $i++) { mhash_keygen_s2k - Generates a key + Kulcsot generál - Description + Leírás string mhash_keygen_s2k @@ -256,22 +268,24 @@ for ($i = 0; $i <= $nr; $i++) { - Mhash_keygen_s2k generates a key that is - bytes long, from a user given password. - This is the Salted S2K algorithm as specified in the OpenPGP - document (RFC 2440). That algorithm will use the specified - hash algorithm to create the key. - The salt must be different and random - enough for every key you generate in order to create different keys. - That salt must be known when you check the keys, thus it is - a good idea to append the key to it. Salt has a fixed length - of 8 bytes and will be padded with zeros if you supply less bytes. - Keep in mind that user supplied passwords are not really suitable - to be used as keys in cryptographic algorithms, since users normally - choose keys they can write on keyboard. These passwords use - only 6 to 7 bits per character (or less). It is highly recommended - to use some kind of tranformation (like this function) to the user - supplied key. + Az mhash_keygen_s2k egy olyan kulcsot generál, + ami bytes hosszú, és a megadott jelszót + figyelembe véve készül. Az S2K algoritmust használja, ami az OpenPGP + dokumentumban (RFC 2440) definiált. A megadott + hash algortmust használja a kulcs előállítására. + A salt minden generált kulcsra más-más + kell legyen, kellőkképpen véletlenszerű értékekkel, hogy különböző + kulcsok álljanak elő. A salt-nak ismertnek kell lennie, + amikor ellenőrzöd a kulcsokat, tehát jó ötlet ehhez fűzni + a kulcsokat. A salt-nak mindig nyolc karakter hosszúnak kell + lennie, ha rövidebbet adsz meg, nulákkal töltődik fel. + Tartsd szem előtt, hogy a felhasználók által beadott jelszavak + nem túlságosan alkalmasak titkosítási rendszerek kulcsaiként, + mivel a felhasználók általában jól begépelhető kulcsot + választanak. Ezek a jelszavak csak 6-7 bitet (vagy még + kevesebbet) használnak ki karakterenként. Nagyon ajánlott + a beadott jelszóra egy olyan átalakítás használata, mint + ez a függvény. diff --git a/functions/readline.xml b/functions/readline.xml index 24950dba05..e2c7047059 100644 --- a/functions/readline.xml +++ b/functions/readline.xml @@ -144,7 +144,7 @@ print_r (readline_info()); If called with no parameters, this function returns an array of - values for all the setting readline uses. The elements will will + values for all the setting readline uses. The elements will be indexed by the following values: done, end, erase_empty_line, library_version, line_buffer, mark, pending_input, point, prompt, readline_name, and terminal_name. diff --git a/functions/wddx.xml b/functions/wddx.xml index 21de0b05f8..d9aec85ae8 100644 --- a/functions/wddx.xml +++ b/functions/wddx.xml @@ -5,7 +5,7 @@ These functions are intended for work with WDDX. - + Note that all the functions that serialize variables use the first element of an array to determine whether the array is to be @@ -21,7 +21,7 @@ print wddx_serialize_value("PHP to WDDX packet example", "PHP packet"); ?> - + This example will produce: @@ -48,7 +48,7 @@ print $packet; ?> - + This example will produce: @@ -79,14 +79,14 @@ print $packet; comment - + wddx_serialize_value is used to create a WDDX packet from a single given value. It takes the value contained in var, and an optional comment string that appears in the packet header, and returns the WDDX packet. - + @@ -106,18 +106,18 @@ print $packet; - + wddx_serialize_vars is used to create a WDDX packet with a structure that contains the serialized representation of the passed variables. - + wddx_serialize_vars takes a variable number of arguments, each of which can be either a string naming a variable or an array containing strings naming the variables or another array, etc. - + wddx_serialize_vars example @@ -133,7 +133,7 @@ print wddx_serialize_vars("a", "b", $clvars); ?> - + The above example will produce: @@ -142,7 +142,7 @@ print wddx_serialize_vars("a", "b", $clvars); <string>blue</string><string>orange</string><string>violet</string></array></var> <var name='d'><string>colors</string></var></struct></data></wddxPacket> - + @@ -160,14 +160,14 @@ print wddx_serialize_vars("a", "b", $clvars); comment - + Use wddx_packet_start to start a new WDDX packet for incremental addition of variables. It takes an optional comment string and returns a packet ID for use in later functions. It automatically creates a structure definition inside the packet to contain the variables. - + @@ -184,19 +184,19 @@ print wddx_serialize_vars("a", "b", $clvars); int packet_id - + wddx_packet_end ends the WDDX packet specified by the packet_id and returns the string with the packet. - + wddx_add_vars - Ends a WDDX packet with the specified ID + Add variables to a WDDX packet with the specified ID Description @@ -210,7 +210,7 @@ print wddx_serialize_vars("a", "b", $clvars); - + wddx_add_vars is used to serialize passed variables and add the result to the packet specified by the @@ -234,7 +234,7 @@ print wddx_serialize_vars("a", "b", $clvars); string packet - + wddx_deserialized takes a packet string and deserializes it. It