The BASE64 is an encryption and decryption algorithm to convert binary data to ASCII, and vice versa. The BASE64 is used in email and XML. There are lots of alternations according to the usage. The PHPoC supports 3 types - standard type, URL type, and MIME type.
Parameter | Description |
---|---|
enc/dec | dec - encryption dec - decryption |
$msg | the plain text to be encrypted or cipher text to be decrypted |
std/mime/url | std - standard mime - MIME url - URL The default is standard if it is omitted. |
The following is an example of BASE64.
$enc_out = system("base64 enc %1", $msg0);
$dec_out = system("base64 dec %1", $enc_out);