Encryption means convert to such form which is not easy to understand .
base64_encode which encrypt current string or data , also helpful to store secure data.
base64_decode which decrypt encrypted data.
<?php
$var1 = 'test';
echo base64_encode($var1);
//dGVzdA==
echo '<p>'.base64_decode('dGVzdA');
?>
md5 encryption - which cannot decode - one way encryption
<?php
$sampl = 'sample text here';
echo md5($sampl);
?>
No comments:
Post a Comment