PKI (version 0.1-12)

PKI.digest: Compute digest sum based on SHA1, SHA256 or MD5 hash functions

Description

PKI.digest computes digsest sum based on the hash function specified

Usage

PKI.digest(what, hash = c("SHA1", "SHA256", "MD5"))

Value

Raw vector containg the hash

Arguments

what

raw vector of bytes to digest

hash

type of the hash function. Note that "MD5" should not be used for cryptographic purposes as it is not secure

Author

Simon Urbanek

See Also

PKI.sign

Examples

Run this code
  PKI.digest(as.raw(1:10))

Run the code above in your browser using DataLab