问题描述:

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

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

网友答案:

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.

网友答案:

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

相关阅读:
Top