High-performance hashing algorithms for Node.js and Browser, powered by Rust and WebAssembly.
| Package | Version | Description |
|---|---|---|
@ciptacode/hash |
0.1.0 |
Umbrella package (all algorithms) |
@ciptacode/hash-sha256 |
0.1.0 |
SHA-256 algorithm |
@ciptacode/hash-sha512 |
0.1.0 |
SHA-512 algorithm |
@ciptacode/hash-sha384 |
0.1.0 |
SHA-384 algorithm |
@ciptacode/hash-sha1 |
0.1.0 |
SHA-1 algorithm |
@ciptacode/hash-md5 |
0.1.0 |
MD5 algorithm |
This project is built using a monorepo structure. Each hashing algorithm is implemented in Rust for maximum performance and compiled to WebAssembly (Wasm).
Key features:
- Fast: Near-native performance using Rust implementations.
- Universal: Runs in Node.js and modern browsers.
- Async API: Handles Wasm initialization internally.
- Polymorphic: Returns hex strings for string inputs and
Uint8Arrayfor byte inputs.
make build # Build all Wasm packages
make test # Run all unit and integration tests