Through MD5, we can easily encrypt a string. Below code snippet example take and encrypts a string, take note though that you could not decrypt any data after encryption.
<?php
$encryptText = "Hello world '";
$encryptedText = md5($encryptText );
echo "Clear Text : $encryptText <br /> Encrypted text: $encryptedText";
?>
$encryptText = "Hello world '";
$encryptedText = md5($encryptText );
echo "Clear Text : $encryptText <br /> Encrypted text: $encryptedText";
?>
All PHP Scripts on this website are provided by phpscripts4u.com where you can find all the latest PHP code snippets, plugins and libraries.