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.
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
Using pnpm:
pnpm add uphash
Using yarn:
yarn add uphash
Using npm:
npm install uphash
import { createHash } from 'uphash';
const hash = createHash({ algorithm: 'SHA-256' });
const hashValue = await hash({ foo: 'bar' });
License Apache-2.0 Copyright (c) 2023-present Ivan Zakharchanka