belongs to collection: PHP Miscellaneous
Here, we will calculate the md5 hash using the md5() function that encrypts the plaintext.
The source code to calculate the md5 hash from plaintext is given below. The given program is compiled and executed successfully.
//PHP program to calculate the md5 hash from plaintext.
$plaintext = "www.includehelp.com";
printf("Encrypted data: %s<br>", md5($plaintext));
Encrypted data: 956006613d32bc33569dbb5bd1c32fea
Here, we created a local variable. After that, we called the md5() function that returns the encrypted data and then we printed the returned data using the printf() function on the webpage.
total answers (1)
start bookmarking useful questions and collections and save it into your
own study-lists, login now to start creating your own collections.