digest
Details
| Last Update: | 2008-05-26 23:15:31 |
| Version: | 0.2.3 |
| License/Program Type: | GPL (GNU General Public License) |
| Publisher: | Dirk Eddelbuettel |
| Price: | $0.00 |
Description:
digest is an utility that can digest 'hash' summaries for arbitrary GNU R objects.
digest provides `hash' function summaries for GNU R objects. The md5, sha-1 and crc32 hash functions are available. The md5 algorithm by Ron Rivest is specified in RFC 1321, the SHA-1 algorithm is specified in FIPS-180-1 and the crc32 algorithm is described in here. For md5 and sha-1, this packages uses two small standalone C implementations that were provided by by Christophe Devine. For crc32, code from the zlib library is used. Please note that this package is not meant to be used for cryptographic purposes for which more comprehensive (and widely tested) libraries such as OpenSSL should be used.
Example
The following verbatim R session loads digest and runs the example() from the corresponding help page:
> library(digest)
> example(digest)
digest> md5Input md5Output for (i in seq(along = md5Input)) {
md5 sha1Input sha1Output for (i in seq(along = sha1Input)) {
sha1 crc32Input crc32Output for (i in seq(along = crc32Input)) {
crc32 sha1 stopifnot(identical(sha1, "a9993e364706816aba3e25717850c26c9cd0d89d"))
digest> digest(list(LETTERS, data.frame(a = letters[1:5],
b = matrix(1:10, ncol = 2))))
[1] "20f8c37b7860c9d7c4aff15ab254e054"
digest> fname = file.path(R.home(), "COPYING")
digest> x = readChar(fname, file.info(fname)$size)
digest> for (alg in c("sha1", "md5", "crc32")) {
h1 = digest(x, length = 18000, algo = alg, serialize = FALSE)
h2 = digest(fname, length = 18000, algo = alg, serialize = FALSE,
file = TRUE)
h3 = digest(substr(x, 1, 18000), algo = alg, se .... [TRUNCATED]
digest> library(tools)
digest> fname = file.path(R.home(), "COPYING")
digest> h1 = as.character(md5sum(fname))
digest> h2 = digest(fname, algo = "md5", file = TRUE)
digest> stopifnot(identical(h1, h2))
>
0 comments
Add to
digest Version History
Related Software
|
|
From category: Utilities |
| Xen is a virtual machine monitor for x86 that supports execution of multiple guest operating systems in isolated environments.... |
|
|
From category: Utilities |
| Lookbusy is a simple application for generating synthetic load on a Linux system.... |
|
|
From category: Utilities |
| cx_OracleTools 7.4 is utilities software developed by Anthony Tuininga. cx_Oracletools are Python scripts that handle Oracle databases in a cross platform manner. Some of the scripts include... |
|
|
From category: Utilities |
| Dazuko 2.3.2 is utilities software developed by John Ogness. Dazuko provides a device driver allowing 3rd-party (userland) applications to execute file access control. Dazuko project was originally... |
|
|
From category: Utilities |
| dejaGnu 1.4.4 is utilities software developed by Rob Savoye. DejaGnu is a framework for testing other programs. dejaGnu\'s purpose is to provide a single front end for all tests. Think of it as a c... |
|
|
From category: Utilities |
| CueCat driver 0.8.2 is utilities software developed by Pierre-Philippe Coupard. CueCat driver is a driver for Linux that supports a standard PS/2 CueCat connected on a PS/2 keyboard or mouse port a... |
|
|
From category: Utilities |
| ranpwd is a small utility for generating random passwords in a variety of formats.... |
|
|
From category: Backup |
| Software for Zune music recovery restores music, mp3, mp4 pictures, video files and folders lost due to accidental deletion, corruption, formatting and improper handling of your zune digital music pla... |
|
|
From category: Utilities |
| drraw 2.2a1 is utilities software developed by Christophe Kalt. drraw project is a simple Web-based presentation front-end for RRDtool that allows you to interactively build graphs of your own desi... |
|
|
From category: Utilities |
| Gramps (Genealogical Research and Analysis Management Programming System) is an open source genealogy program.... |
|
|
From category: Utilities |
| DynaStop is a gpl licensed LINUX utility to examine IP4 based addresses for Exim.... |
|
|
From category: Utilities |
| BMDFM 5.9.9 revision:15-Sep-2005 is utilities software developed by BMDFM Team. BMDFM (Binary Modular DataFlow Machine) is software, which enables running an application in parallel on shared memor... |
|
|
From category: Utilities |
| BRLTTY 3.7 is utilities software developed by The BRLTTY Team. BRLTTY is a background process (daemon) which provides access to the Linux/Unix console (when in text mode) for a blind person using a... |
|
|
From category: Utilities |
| bup 3.1 is utilities software developed by Carlo Perassi. bup is a patch for bash that modifies the shell to send all user keystrokes via UDP over the network for collection by a sniffer or a syslo... |
|
|
From category: Utilities |
| diskio patch 2.4.27-1 is utilities software developed by Alan Swanson. diskio patch is a kernel patch. The 2.4.X kernel doesn\'t report disk IO in /proc/stat for any devices over either majo... |
Leave a comment