i'm lookig c# code convert string base62 this:
http://www.molengo.com/base62/title/base62-encoder-decoder
i need encode , decode-methods url-encoding.
try c# library available here adds extension methods allow convert byte array , base62.
if source data contained in "string" first need convert "string" suitable byte array.
but careful, use correct string byte conversion call....as may want bytes ascii characters, or unicode byte stream etc i.e. encoding.getbytes(text) or system.text.asciiencoding.ascii.getbytes(text);, etc
byte[] bytestoencode = ..... string encodedasbase62 = bytestoencode.tobase62(); ..... byte[] bytesdecoded = encodedasbase62.frombase62();
Comments
Post a Comment