Discuss / Java / MD5,32位算法

MD5,32位算法

Topic source

心云意水

#1 Created at ... [Delete] [Delete and Lock User]

MD5应该还有个输出32位长度字符串的算法, java里没有现成的实现吗?

廖雪峰

#2 Created at ... [Delete] [Delete and Lock User]
byte[] bs = new byte[16];
new Random().nextBytes(bs);
String s = HexFormat.of().formatHex(bs);
System.out.println(s);

  • 1

Reply