Is there a simple algorithm where by I can convert an numeric value to alphanumeric and reliably convert back it to the same numeric ?
ex: 12345 -> 00A3DF -> 12345
Thanks
Is there a simple algorithm where by I can convert an numeric value to alphanumeric and reliably convert back it to the same numeric ?
ex: 12345 -> 00A3DF -> 12345
Thanks
I assume when you say alphanumeric you mean hexadecimal. This has already been answered:
http://stackoverflow.com/questions/74148/how-to-convert-numbers-between-hex-and-decimal-in-c http://stackoverflow.com/questions/1139957/c-convert-integer-to-hex-and-back-again