无法使用OpenSSL PHP使用加密URL
我正在使用PHP,并且每当我加密“ ID”并用URL附加时,我正在使用“ OpenSSL加密”,然后单击该URL 然后在浏览器中显示不同的“文本/URL”?我在哪里错了? 例如,这里是我的URL
http://xxxxxx.com/wp-admin/response?useremail=347Dx7YeET0KiHV3XyYYrIwZ0bYahglDhxzag0VM+D8=
,每当我在浏览器中使用上面的URL时,它都会与
http://xxxxxx.com/response/?useremail=347Dx7YeET0KiHV3XyYYrIwZ0bYahglDhxzag0VM%20D8%3D
此转换为我的代码
$encryptedText2 = openssl_encrypt($email_encrypt,"AES-128-CBC",$secretKey,OPENSSL_RAW_DATA,$iv);
$useremails_encrypts = base64_encode($encryptedText2);
I am working with php and i am using "Openssl encryption",Whenever i am encrypt "id" and append with url and then click on that url
then different "text/url" showing in browser ? where i am wrong ?
For example here is my url
http://xxxxxx.com/wp-admin/response?useremail=347Dx7YeET0KiHV3XyYYrIwZ0bYahglDhxzag0VM+D8=
And whenever i am use above url in my browser then it convert with
http://xxxxxx.com/response/?useremail=347Dx7YeET0KiHV3XyYYrIwZ0bYahglDhxzag0VM%20D8%3D
Here is my code
$encryptedText2 = openssl_encrypt($email_encrypt,"AES-128-CBC",$secretKey,OPENSSL_RAW_DATA,$iv);
$useremails_encrypts = base64_encode($encryptedText2);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论