This is an internal utility to help us create stable hashes.
It’s super minimal and matches similar internal code in other languages.
This exists to make sure things work the same across languages.
When should I use this?
This is an internal Arcjet package not designed for public use.
See our Get started guide for how to use Arcjet in your
application.
Install
This package is ESM only.
Install with npm in Node.js:
Hashes multiple fields together and returns a stable hash string. You pass
in the field hashers created by bool, string, stringSliceOrdered, and
uint32.
A Promise that resolves to the hash (Promise<string>).
makeHasher(subtle)
Creates a new hash function using the provided SubtleCrypto
implementation. We use this internally to support different crypto
implementations across runtimes.
Parameters
subtle (SubtleCryptoLike)
— a SubtleCrypto-like implementation
The npm package @arcjet/stable-hash receives a total of 46,844 weekly downloads. As such, @arcjet/stable-hash popularity was classified as popular.
We found that @arcjet/stable-hash demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 2 open source maintainers collaborating on the project.
Package last updated on 06 Jul 2026
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.