Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有一种简单的算法可以将数值转换为字母数字并可靠地将其转换回相同的数字?
例如,12345转换为00A3DF并返回到12345.
12345
00A3DF
我假设当您说字母数字时,您的意思是十六进制。这已经回答了:
如何在 C# 中转换十六进制和十进制之间的数字? C#将整数转换为十六进制并再次返回