0.7.0 • Published 10 months ago

md5gen-wasm v0.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

md5gen-wasm 🦀

NPM Version NPM Unpacked Size GitHub Actions Workflow Status contributions welcome License: MIT

md5gen-wasm is a lightning-fast ⚡️ WebAssembly library designed for generating MD5 hashes. Built with Rust 🦀 and Wasm, this project offers a highly efficient way to compute MD5 hashes directly in the browser or any Wasm-supported environment..

Features

  • Fastest MD5 Hashing: Based on benchmark tests done in example applications, md5gen-wasm is the fastest MD5 hashing library available.
  • Efficient Memory Usage: Automatically chunks the given file to manage memory consumption efficiently.
  • WebAssembly: Run in any environment that supports WebAssembly, including modern web browsers.

Installation

To use md5gen-wasm in your project, you can install it via npm:

npm install md5gen-wasm

Usage

Here's a quick example of how to use md5gen-wasm to compute MD5 hashes in a web application:

import { md5_from_file } from 'md5gen-wasm';

// Example usage with a file input
document.getElementById('fileInput')?.addEventListener('change', async (event: Event) => {
  const input = event.target as HTMLInputElement;
  if (input.files && input.files.length > 0) {
    const file = input.files[0];
    const result = await md5_from_file(file);
    console.log(`MD5 hash: ${result}`);
  }
});;

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

0.7.0

10 months ago

0.6.4

10 months ago

0.6.3

10 months ago

0.4.0

10 months ago

0.3.0

10 months ago

0.2.0

10 months ago

0.1.0

10 months ago