Skip to content

Simple wrapper around SubtleCrypto RSA implementation

Notifications You must be signed in to change notification settings

usermirror/subtle-rsa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


🤫 subtle-rsa

Simple wrapper around
SubtleCrypto RSA implementation.



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>

About

Simple wrapper around SubtleCrypto RSA implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published