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
- Host: GitHub
- URL: https://github.com/lovasoa/subtle-crypto
- Owner: lovasoa
- Created: 2019-05-24T09:37:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-24T09:38:30.000Z (about 7 years ago)
- Last Synced: 2025-02-08T23:42:35.964Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
}
```