Skip to content

Instantly share code, notes, and snippets.

@nassimhaddad
Created January 19, 2013 08:49
Show Gist options
  • Save nassimhaddad/4571494 to your computer and use it in GitHub Desktop.
Save nassimhaddad/4571494 to your computer and use it in GitHub Desktop.
digest package to create hash from any r object
library(digest)
test <- c("hobe", "jmjj", 1)
digest(test, algo = "md5")
digest(test, algo = "sha1")
digest(test, algo = "crc32") # not collision proof
digest(test, algo = "sha256")
digest(test, algo = "sha512")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment