Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harzu/wasm-rsa
rsa library with webAssembly rust implementation - https://harzu.github.io/wasm-rsa/
https://github.com/harzu/wasm-rsa
cryptography rsa rust typescript wasm webassembly
Last synced: 13 days ago
JSON representation
rsa library with webAssembly rust implementation - https://harzu.github.io/wasm-rsa/
- Host: GitHub
- URL: https://github.com/harzu/wasm-rsa
- Owner: Harzu
- License: mit
- Created: 2019-02-11T19:43:44.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T23:43:08.000Z (almost 2 years ago)
- Last Synced: 2024-10-25T10:49:58.970Z (22 days ago)
- Topics: cryptography, rsa, rust, typescript, wasm, webassembly
- Language: TypeScript
- Homepage:
- Size: 497 KB
- Stars: 17
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WASM RSA
[![npm downloads](https://img.shields.io/npm/dt/wasm-rsa.svg)](https://www.npmjs.com/package/wasm-rsa)
[![npm](https://img.shields.io/npm/v/wasm-rsa.svg?maxAge=2592000)](https://www.npmjs.com/package/wasm-rsa)WebAssembly rsa library for generate keys and sign/verify message in nodejs and browsers
## Install
```shell
npm i wasm-rsa
```## Examples
webpack 4 example - [webpack_four](https://github.com/Harzu/wasm-rsa/tree/master/examples/webpack_four)
## Docs - [Click here](https://harzu.github.io/wasm-rsa/)
## Usage
```javascript
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
```javascript
import RSASetup, { RSAInterface } from 'wasm-rsa'
```## For developers
install rust
```shell
curl https://sh.rustup.rs -sSf | sh
rustup target add wasm32-unknown-unknown
cargo check --target wasm32-unknown-unknown
```install wasm-pack cli
```shell
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh;
```clone repo
```shell
git clone https://github.com/Harzu/wasm-rsa.git
```build
```shell
npm run build
```Run test
```shell
npm run test
```