【发布时间】:2017-01-27 12:29:14
【问题描述】:
一直在尝试用erlang写md5-digest算法,不知道怎么实现这一步,
1. creating 16 octet MD5 hash of X where X is a string.
有人可以帮忙吗?
这是不是这个意思:
Create a 16 byte(32-hex digits) of base - 8(octet) which is md5 of X. ?
谢谢!
【问题讨论】:
-
答案是肯定的。请注意,字符串也可以表示八位字节字符串或位字符串(虽然大多数库只处理字节,但原则上位字符串也是可能的)。
标签: hash cryptography erlang hex md5