test-encrypting
v0.4.0
Published
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
Downloads
2
Readme
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
A template for kick starting a Rust and WebAssembly project using wasm-pack.
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
wasm-bindgen
for communicating between WebAssembly and JavaScript.console_error_panic_hook
for logging panic messages to the developer console.wee_alloc
, an allocator optimized for small code size.