I am implementing a security verification of user by email. I am encrypting user email ID using base64_encode function and sending it to user email as a link.
Eg. mysite.php?token=sdjfh348+4h8hjheh+f8935ykjhfs_jkfh=938
When user clicks the link, I extract the token value and decrypts it using mcrypt_decrypt function. This should match the email in the database table.
When I am extracting the token value using $_GET['token'], I am not getting the exact value, symbols such as + in the value are missing. This leads to wrong decryption.
How to solve this issue?