I need to be able to send users a link that contains an encrypted value which is used to authenticate the user when they visit the link.
The current process uses a salt and roughly 40 character unique hash which is then encrypted and base64 encoded so that it can be safely be transported via email and in theory come back safely through the URL.
However, as this is my first attempt at doing something like this, I failed to consider the effect of slashes in the encrypted value. This causes the value to be truncated when I pull it from the URL which obviously won't work when I try to decrypt it.
How is this generally accomplished? Links to tutorials, etc. are always appreciated.