PHPurl encryption and decryption function code. The copy code is as follows: $ returnUrlrawurlencode (base64_encode ($ returnUrl); code $ returnUrlparse_str (base64_decode ($ returnUrl); decoding or $ returnUrlbase64_deco
The code is as follows:
$ ReturnUrl = rawurlencode (base64_encode ($ returnUrl); // encoding
$ ReturnUrl = parse_str (base64_decode ($ returnUrl); // decodes or
$ ReturnUrl = base64_decode ($ returnUrl); // decode
// Or
// I don't know why. The first decoding method above returns null and solves the problem.
$ ReturnUrl = base64_encode ($ returnUrl); // encoding
$ ReturnUrl = base64_decode ($ returnUrl); // decode
This is a method, but it is the safest, because it can be solved as long as you know the principle, but you do not have high requirements.
If you want to be safe, you need to use a dedicated encryption class.
Http://www.bkjia.com/PHPjc/324115.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/324115.htmlTechArticle code: $ returnUrl = rawurlencode (base64_encode ($ returnUrl); // Encode $ returnUrl = parse_str (base64_decode ($ returnUrl )); // decoding or $ returnUrl = base64_deco...