I'm using Base64 to encrypt/decrypt links. It works great, except the link is getting two equals signs so:
When a customer gets an email, the whole link is not clickable, the two important "==" isn't reading as a link.
How can I make it read the encrypted text as a whole link with the two equals signs?
Also, is it possible if you are missing some letter, refer to another page/error message instead of casting an exception (like
Invalid length for a Base-64 char array or string)?
for example now the link is like:
www.blaa/constollername/methodname?base64link=f5HmbS2tfYRozBfcIV9bCUa1YcGmOFp0AR==
but I want it to be:
www.blaa/constollername/methodname?base64link=f5HmbS2tfYRozBfcIV9bCUa1YcGmOFp0AR
Also if you print out like:
www.blaa/constollername/methodname?base64link=f5HmbS2tfYRozBf
in the url you should be given a error or something like: This page is forbidden.... or something like that, instead of an exception (like I said before).
The code is working and I'm using: Encoding.UTF8.GetBytes and ToBase64String
Because the code is working except the equals sign I'm not posting any code yet if not needed.