The goal of this is not for security, but for obscurity so the casual user will not be able to determine what the email address is.
I don't want to display an email address in the URL like:
www.example.com/?id=johnsmith@example.com
I would like to encrypt the email address, with the goal of:
- the encrypted text should be encodable to be in a querystring
- the length should be as short as possible
- should not be easily decryptable e.g. using md5
- I can decrypt the value back
Can someone suggest an ecryption algorith that would meet the above criteria?