MD5,32位算法
Topic sourcebyte[] bs = new byte[16];
new Random().nextBytes(bs);
String s = HexFormat.of().formatHex(bs);
System.out.println(s);
- 1
byte[] bs = new byte[16];
new Random().nextBytes(bs);
String s = HexFormat.of().formatHex(bs);
System.out.println(s);
心云意水
MD5应该还有个输出32位长度字符串的算法, java里没有现成的实现吗?