John Davidson

Unable to use encrypted url by openssl PHP

0 comments
Message:


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);


My Answer:
the openssl library to encrypt and decrypt data. However, I am having trouble using encrypted URLs with openssl in PHP. Can you provide more information on how to use encrypted URLs with openssl in PHP?

Rate this post

4 of 5 based on 1933 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us