test-encrypting
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

Evaluation of crypto libs for developing with wasm

This is a simple tool to benchmark the following crypto-libraries which I implemented according to their example in the documentation or repo:

Usage

wasm-pack build
cd www
npm install
npm run start

Build and copy to server

wasm-pack build
wasm-pack publish
cd www/dist/
scp -P port * moritz@myserver:/home/moritz/test-encryption/dist

now the website is served on localhost:8080

rust-crypto

  • aes has complex "sample" code
  • works(?)
  • overhead for blowfish which had to be handled somehow (maybe other libs have that too tho)
  • i am not able to implement chacha20, since the documentation has 0 comments

aes-gcm-siv

  • misuse resistant
  • least code implemented

c2

  • chacha20 is convininent

blowfish with cbc

  • buffer for encryption has to be set statically ??? (probably able to work around that tho)

Since I used the rust-wasm template I'll leave this here

wasm-pack-template

A template for kick starting a Rust and WebAssembly project using wasm-pack.

Build Status

Built with 🦀🕸 by The Rust and WebAssembly Working Group

About

📚 Read this template tutorial! 📚

This template is designed for compiling Rust libraries into WebAssembly and publishing the resulting package to NPM.

Be sure to check out other wasm-pack tutorials online for other templates and usages of wasm-pack.

🚴 Usage

🐑 Use cargo generate to Clone this Template

Learn more about cargo generate here.

cargo generate --git https://github.com/rustwasm/wasm-pack-template.git --name my-project
cd my-project

🛠️ Build with wasm-pack build

wasm-pack build

🔬 Test in Headless Browsers with wasm-pack test

wasm-pack test --headless --firefox

🎁 Publish to NPM with wasm-pack publish

wasm-pack publish

🔋 Batteries Included

Readme

Keywords

none

Package Sidebar

Install

npm i test-encrypting

Weekly Downloads

5

Version

0.4.0

License

none

Unpacked Size

236 kB

Total Files

5

Last publish

Collaborators

  • moritzw