Simple Data Masking Algorithm
-
29-09-2019 - |
Pergunta
Is there a simple algorithm where by I can convert a numeric value to alphanumeric and reliably convert it back to the same number?
For example, 12345
converts to 00A3DF
and back to 12345
.
Solução
I assume when you say alphanumeric you mean hexadecimal. This has already been answered:
How to convert numbers between hexadecimal and decimal in C#? C# convert integer to hex and back again
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow