Skip to content

typedrat/human-prp

Repository files navigation

human-prp

npm npm bundle size

human-prp is a library that uses pseudorandom permutations to generate human-friendly IDs.

Specifically, it uses a dynamic-size balanced Feistel network based on a non-cryptographic hash function to select words from an included word list.

I want to stress the word non-cryptographic above! The current implementation uses a bog-standard Fibonacci hash to match the postgres extension that it is based on.

Building

Prerequsites for building the WASM:

  • clang
  • lld

About

A library that uses psuedo-random permutations to generate human-friendly IDs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published