- base64_encode()
- base64_decode()
http://www.example.com/test.php?password=skills2earnThen you can encode it using the following code:
http://www.example.com/test.php?password=<?php echo base64_encode('skills2earn'); ?>The output of the above code will be:
http://www.example.com/test.php?password=c2tpbGxzMmVhcm4=
Now when you want to decode/decrypt it you can do it using the following code:
<?php echo base64_decode('c2tpbGxzMmVhcm4='); ?>The output of the above code will be:
skills2earn
Well guyz that was a very simple php encryption and decryption technique, if you have any queries or suggestions, please feel free to comment.