I want to encrypt a String to an cipher which consists only of alphabets (a-z/A-Z) and numbers(0-9). I doesn't want it to have any other characters (=, &, !.. etc).
Is there any way to achieve it? If so, can please someone help me out. A java code will be preferred without any external libraries.
Note:
I have already tried base64 encoding but it does't work as it uses '=' as padding character.
This generated cipher will be used in web urls to pass values.
The cipher should also be decoded back to original String.