3
。当我计算每个函数的散列时,我会得到不同的结果。为什么digest和PKI.digest返回不同的散列?例如,
PKI::PKI.digest("hola", "MD5")
digest::digest("hola", "md5")
。当我计算每个函数的散列时,我会得到不同的结果。为什么digest和PKI.digest返回不同的散列?例如,
PKI::PKI.digest("hola", "MD5")
digest::digest("hola", "md5")
使用serialize = FALSE
为digest
。
> PKI::PKI.digest("hola", "MD5")
[1] 4d 18 63 21 c1 a7 f0 f3 54 b2 97 e8 91 4a b2 40
> digest::digest("hola", "md5", serialize=FALSE)
[1] "4d186321c1a7f0f354b297e8914ab240"
digest
的帮助页面声明输入是默认序列化的。
不能说更好自己:) –
谢谢。有用。 – kintero