subtle-crypto
v0.0.0
Published
Using Web Crypto's Subtle APIs in the browser and Node.js
Downloads
796
Readme
Usage
const SubtleCrypto = require('subtle-crypto/common')
// If running in the browser
SubtleCrypto === window.SubtleCrypto
// If running in node
SubtleCrypto = {
encrypt,
decrypt,
sign,
verify,
digest,
generateKey,
deriveKey,
deriveBits,
importKey,
exportKey,
wrapKey,
unwrapKey
}