PHP Base64_decode and Base64_encode encryption and decryption functions, the example of the Base64 encryption and decryption function of the specific use, has a certain practical value, the need for friends can refer to the next
This paper describes the Base64_decode and Base64_encode cryptographic decryption functions in PHP.
Share to everyone for your reference. The specific analysis is as follows: These two functions are used in PHP to encrypt the PHP code and to solve the password
Base64_encode is encrypted,
And Base64_decode is decrypted,
Let's take a look at two simple examples.
Decryption: Base64_encode Syntax:stringBase64_decode (stringdata); The code is as follows: $str=' Ymfzzty ()';//Defining Stringsecho Base64_decode ($STR);//output decoded content base64
Encryption:
base64_encode Syntax:stringBase64_encode (stringdata); The code is as follows: $str='Base64';//Defining Stringsecho Base64_encode ($STR);//the output encoding is: Ymfzzty ()
Base64_decode and Base64_encode cryptographic decryption functions in PHP