An open API service indexing awesome lists of open source software.

https://github.com/lovasoa/subtle-crypto

Using Web Crypto's SubtleCrypto APIs in the browser and Node.js
https://github.com/lovasoa/subtle-crypto

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          



subtle-crypto


Using Web Crypto's SubtleCrypto APIs

in the browser and Node.js




Installation ·
Issues ·
Usage

### Usage

```js
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
}
```