R/digest.R

Defines functions PKI.digest

Documented in PKI.digest

PKI.digest <- function(what, hash=c("SHA1", "SHA256", "MD5")) {
  hash <- pmatch(hash, c("SHA1", "SHA256", "MD5"))[1]
  if (is.na(hash)) stop("invalid hash specification")
  .Call(PKI_digest, what, hash)
}

Try the PKI package in your browser

Any scripts or data that you put into this service are public.

PKI documentation built on Nov. 28, 2022, 9:05 a.m.