Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jthinking/hashes-node
Hashes utils for node.js based on RustCrypto and napi-rs.
https://github.com/jthinking/hashes-node
belt-hash blake2 blake3 fsb gost94 groestl md2 md4 md5 ripemd sha1 sha2 sha3 shabal sm3 streebog tiger whirlpoo
Last synced: about 1 month ago
JSON representation
Hashes utils for node.js based on RustCrypto and napi-rs.
- Host: GitHub
- URL: https://github.com/jthinking/hashes-node
- Owner: jthinking
- License: mit
- Created: 2023-01-07T12:42:46.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-08T12:44:22.000Z (almost 2 years ago)
- Last Synced: 2024-11-13T14:54:51.143Z (about 2 months ago)
- Topics: belt-hash, blake2, blake3, fsb, gost94, groestl, md2, md4, md5, ripemd, sha1, sha2, sha3, shabal, sm3, streebog, tiger, whirlpoo
- Language: JavaScript
- Homepage:
- Size: 886 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hashes-node
Hashes utils for node.js based on [RustCrypto](https://github.com/RustCrypto/hashes) and [napi-rs](https://github.com/napi-rs/napi-rs).
## Installing
```
npm i @jthinking/hashes-node
```## Usage
```js
// import hashes-node
import { md5, blake3, sm3 } = require('@jthinking/hashes-node')// convert data to Buffer
const buf = Buffer.from('123', 'UTF-8')// md5 hex
const md5Hex = md5(buf)// blake3 hex
const blake3Hex = blake3(buf)// sm3 hex
const sm3Hex = sm3(buf)// other algorithms
// ...
```## Supported Algorithms
- md2
- md4
- md5
- sha1
- sha256 (sha2_256)
- sha512 (sha2_512)
- sha3_256
- sha3_512
- sm3
- belt_hash
- blake2s256
- blake2b512
- blake3
- fsb512
- fsb256
- gost94
- groestl256
- groestl512
- ripemd128
- ripemd160
- ripemd256
- ripemd320
- shabal192
- shabal224
- shabal256
- shabal384
- shabal512
- streebog256
- streebog512
- tiger
- tiger2
- whirlpool## Supported Platforms
- Windows x64
- Windows arm64
- macOS x64
- macOS arm64
- Linux x64
- Linux arm64