Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a non-cryptographic hashing library #16

Open
jafaircl opened this issue Dec 11, 2021 · 0 comments
Open

Add a non-cryptographic hashing library #16

jafaircl opened this issue Dec 11, 2021 · 0 comments

Comments

@jafaircl
Copy link
Owner

Is your feature request related to a problem? Please describe.
Stringify-ing then hashing the string is slow and only gets slower as the object grows larger. We need something that works in both node and the browser. For the envisioned use case, we also don't need it to be secure. Any fast, low-collision hash that works for objects as well as primitives will work.

Describe the solution you'd like
We can leverage the built-in node and web crypto APIs to build a version that could be faster and/or have less collisions.

Describe alternatives you've considered
The most popular object hashing libraries only work for one environment and, honestly, provide more options than are necessary for our use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant