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