hash-wasm-rs
A WebAssembly library for computing hashes, built with Rust.
Supported algorithms
| Name |
|---|
| BLAKE3 |
| MD5 |
| SHA: SHA-224, SHA-256, SHA-384, SHA-512 |
| SHA-3: SHA3-224, SHA3-256, SHA3-384, SHA3-512 |
Installation
Cargo Example Installation
HTML Example usage
Example large file hash calculation
Vite Example usage
vite.config.ts
import from "vite";
import wasm from "vite-plugin-wasm";
export default ;
app.vue
;
Development
# Build package WebAssembly library
# Build HTML WebAssembly library
# Build WebAssembly library with SIMD support
RUSTFLAGS="-C target-feature=+simd128"
# Serve the demo page