In my android application, I am using java.util.Base64
encoding and decoding with the flags URL_SAFE
and NO_WRAP
.
However, when I try to decode it in my C# application using HttpServerUtility.UrlTokenEncode
, I am getting back null
. At this state, my encoded string cannot also be decoded on the Android application.
What am I missing out on? Doesn't the URL_SAFE
flag ensure that the Base64 string has no +
, /
and any extra padding? How come UrlTokenEncode
is not accepting the Base64 value?
I was using this post as reference, for anyone who is interested.