0.4.0 • Published 2 years ago

wasm-rsa v0.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

WASM RSA

npm downloads npm

WebAssembly rsa library for generate keys and sign/verify message in nodejs and browsers

Install

npm i wasm-rsa

Examples

webpack 4 example - webpack_four

Docs - Click here

Usage

import RSASetup from 'wasm-rsa'

// Promise syntax
RSASetup().then(rsaInstance => {
  // code...
})

// Async/Await syntax
const rsaInstance = await RSASetup()
// code...

TypeScript

for typescript can import interface

import RSASetup, { RSAInterface } from 'wasm-rsa'

For developers

install rust

curl https://sh.rustup.rs -sSf | sh
rustup target add wasm32-unknown-unknown
cargo check --target wasm32-unknown-unknown

install wasm-pack cli

curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh;

clone repo

git clone https://github.com/Harzu/wasm-rsa.git

build

npm run build

Run test

npm run test
0.4.0

2 years ago

0.3.3

4 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago