NOVINKA: Najžiadanejšie rekvalifikačné kurzy teraz s 50% zľavou + kurz AI ZADARMO. Nečakaj, táto ponuka dlho nevydrží! Zisti viac:

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