UpHash
UpHash provides a flexible and extensible way to create cryptographic hashes from various types of data. It allows custom serialization of the input and supports multiple hashing algorithms. Supports Browser and NodeJS.
Platform Support
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
Installing
Using pnpm:
pnpm add uphash
Using yarn:
yarn add uphash
Using npm:
npm install uphash
Usage
import { createHash } from 'uphash';
const hash = createHash({ algorithm: 'SHA-256' });
const hashValue = await hash({ foo: 'bar' });
License
License Apache-2.0 Copyright (c) 2023-present Ivan Zakharchanka