md5

Calcola il valore md5 di una stringa

string md5(string $str, bool $raw_output)

Calcola il valore MD5 di str utilizzando il RSA Data Security, Inc. MD5 Message-Digest Algorithm, e restituisce tale valore.

str La stringa. raw_output Se il parametro opzionale raw_output รจ impostato a true, allora viene restituito l'md5 digest in formato binario raw con una dimensione di 16.

Restituisce il valore come un numero esadecimale di 32 caratteri.

Un esempio di md5 <?php $str = 'apple'; if (md5($str) === '1f3870be274f6c49b3e31a0c6728957f') { echo "Would you like a green or red apple?"; } ?>

md5_file sha1_file crc32 sha1 hash crypt password_hash