NOVINKA: Kurz kybernetickej bezpečnosti teraz už od 0 €. Staň sa žiadaným profesionálom. Zisti viac:
NOVINKA: Staň sa dátovým analytikom od 0 € a získaj istotu práce, lepší plat a nové kariérne možnosti. Viac informácií:

PHP - MD5

Trieda

Koreň \ Bez triedy

Metóda - MD5

The md5() function is used for calculating the md5 hash of a string.

Warning: It's not recommended to use this function to hash passwords since it's easy to crack. For this purpose use the password_hash() function.

Procedurálne

  • function MD5 () : void

Parametre

Žiadne

Mávratovej hodnoty

Vracia:

Returns the hashed string as a 32-character long hexadecimal number.

Príklady

<?php
echo md5('test'); // hexadecimal format: 098f6bcd4621d373cade4e832627b4f6
echo '<br>';
echo md5('test', true);  // raw binary format

Súvisiace manuály

        Aktivity