Question Detail

How to remove '==' sign from Base64 encoded Encryption in php?

6 years ago Views 2524 Visit Post Reply

I am encrypted a string with Base64_encode("str"). But it returns me encrypted String with '==' sign. that is not acceptable in URL. How can I remove that special character from my Encrypted String?


Thread Reply

Anonymous

- 6 years ago

you need to use below code it will remove all Spacial Character and make your string for URL friendly.

strtr(base64_encode($str_val), '+/=', '._-');