lovasoa / subtle-crypto

Using Web Crypto's SubtleCrypto APIs in the browser and Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

subtle-crypto

Using Web Crypto's SubtleCrypto APIs
in the browser and Node.js


Installation · Issues · Usage

Usage

const SubtleCrypto = require('subtle-crypto')

// 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
}

About

Using Web Crypto's SubtleCrypto APIs in the browser and Node.js


Languages

Language:JavaScript 100.0%