0.3.1 • Published 3 months ago

@kanru/rage-wasm v0.3.1

Weekly downloads
111
License
MIT OR Apache-2.0
Repository
github
Last release
3 months ago

rage-wasm: WebAssembly wrapper of rage

rage is a simple, modern, and secure file encryption tool, using the age format. It features small explicit keys, no config options, and UNIX-style composability.

The format specification is at age-encryption.org/v1. To discuss the spec or other age related topics, please email the mailing list at age-dev@googlegroups.com. age was designed by @Benjojo12 and @FiloSottile.

This package is a WebAssembly wrapper of the Rust rage package, providing basic encryption and descryption operations.

🚴 Usage

🐑 Use NPM or Yarn to install the package

npm install @kanru/rage-wasm

The package exports a single module with 5 async methods. Upon first use an inlined webassembly module will be loaded asynchronously.

  • keygen - generate x25519 key pairs
  • encrypt_with_x25519
  • decrypt_with_x25519
  • encrypt_with_user_passphrase
  • decrypt_with_user_passphrase

Examples

Some examples with parcel or shadow-cljs are available under the examples/ directory.

Contribute

🛠️ Build

npm install
npm run build

🔬 Test in Headless Browsers

npm test

🎁 Publish to NPM

npm publish
0.3.1

3 months ago

0.3.0

2 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago