New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

test-encrypting

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-encrypting

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

latest
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

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

Tutorial | Chat

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

FAQs

Package last updated on 13 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts