One-way hash function in R [duplicate]

2019-06-03 12:27发布

This question already has an answer here:

Is there a repeatable one-way hash function in R? I'd use hashlib in Python:

hashlib.sha224("This is my input").hexdigest()

标签: r hash
2条回答
Animai°情兽
2楼-- · 2019-06-03 13:08

If you have the digest pacakge installed, you can do

digest::digest("This is my input")
# [1] "2e936bb276abca8a9e46bd32c7bdc01e"

(by default the result is returned as ASCII hex values). See the ?digest help page for a list of supported hashing algorithms.

查看更多
Animai°情兽
3楼-- · 2019-06-03 13:11

You might want to have a look at the digest package.

查看更多
登录 后发表回答