Node's crypto
wrapper a child could use
data
or {String} with data to hash- encoding {String} output encoding (default: 'hex')
Returns a string with the hash of data
using the corresponding algorithm (md5, sha, sha1, sha256, sha384, sha512sum)
data
or {String} with data to hashsecret
or {String} with secret to useprivateKey
or {String} or {Object} with private key to useencoding
{String} output encoding (default: 'hex')
Returns a signature for the data using either hmac or rsa signing
For rsXXX
functions key can be an Object with passprhrase like in node's crypto module