subtle-rsa
v0.1.4
Published
Simple wrapper around SubtleCrypto RSA implementation
Downloads
5
Readme
import SubtleRSA from 'subtle-rsa'
let rsa = new SubtleRSA()
let encryptedValue = await rsa.encrypt('value')
if ('value' === (await rsa.decrypt(encryptedValue))) {
// success!
}
Installation
Install with npm:
npm install --save subtle-rsa
Or yarn:
yarn add subtle-rsa
Or using a script tag:
<script
src="https://unpkg.com/subtle-rsa@^0.1/lib/index.umd.js"
crossorigin="anonymous"
></script>