Package: digest

digest: Create Compact Hash Digests of R Objects

Implementation of a function 'digest()' for the creation of hash digests of arbitrary R objects (using the 'md5', 'sha-1', 'sha-256', 'crc32', 'xxhash', 'murmurhash', 'spookyhash', 'blake3', 'crc32c', 'xxh3_64', and 'xxh3_128' algorithms) permitting easy comparison of R language objects, as well as functions such as'hmac()' to create hash-based message authentication code. Please note that this package is not meant to be deployed for cryptographic purposes for which more comprehensive (and widely tested) libraries such as 'OpenSSL' should be used.

Authors:Dirk Eddelbuettel <[email protected]> with contributions by Antoine Lucas, Jarek Tuszynski, Henrik Bengtsson, Simon Urbanek, Mario Frasca, Bryan Lewis, Murray Stokely, Hannes Muehleisen, Duncan Murdoch, Jim Hester, Wush Wu, Qiang Kou, Thierry Onkelinx, Michel Lang, Viliam Simko, Kurt Hornik, Radford Neal, Kendon Bell, Matthew de Queljoe, Ion Suruceanu, Bill Denney, Dirk Schumacher, Winston Chang, Dean Attali, and Michael Chirico.

digest.pdf |digest.html
digest/json (API)

# Install digest in R:
install.packages('digest', repos = c('', ''))

Peer review:

Bug tracker:



9 exports 109 stars 20.94 score 0 dependencies 12494 dependents

Last updated 30 days agofrom:ab48a9ab144a9fc1f29ea8424c08b64fbcc9c796



sha1() versus digest()

Rendered fromsha1.mdusingsimplermarkdown::mdweave_to_htmlon May 16 2024.

Last update: 2021-11-20
Started: 2021-11-20

Readme and manuals

Help Manual

Help pageTopics
Create AES block cipher objectAES
Create hash function digests for arbitrary R objects or filesdigest
hash arbitrary string to integerdigest2int
Set a vectorised function for creating hash function digestsgetVDigest
compute a hash-based message authentication codehmac
Create a raw objectmakeRaw makeRaw.character makeRaw.default makeRaw.digest makeRaw.raw
Calculate a SHA1 hash of an objectsha1 sha1.( sha1.anova sha1.array sha1.character sha1.complex sha1.Date sha1.factor sha1.formula sha1.function sha1.integer sha1.list sha1.logical sha1.matrix sha1.NULL sha1.numeric sha1.pairlist sha1.POSIXct sha1.POSIXlt sha1.raw sha1_attr_digest sha1_digest