I am trying to pass a word (for example: laptop) from android to JSP. I want to convert the word in to a value and sent it in to the JSP(I am able to send numbers from android to JSP as parameters) and once the value is received at the server side (i.e JSP) i need to convert that number back in to that original word. All i need to know is that, is there any way for converting a word to a value and convert it back from that value?
Share
You could use base36 encoding, by using for example the java.math.BigInteger package.
The following example shows that 2969070082552543387862 is the base 36 equivalent of “helloworldaz12”.