- 十进制转化为三十六进制(用于加密)
Long enCode = Long.valueOf("2052612898518");
System.out.println(Long.toString(enCode, 36));
- 三十六进制转化为十进制(用于解密)
Long deCode = Long.parseLong(string, 36);
System.out.println(deCode.toStrring());
Long enCode = Long.valueOf("2052612898518");
System.out.println(Long.toString(enCode, 36));
Long deCode = Long.parseLong(string, 36);
System.out.println(deCode.toStrring());