human-prp
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

human-prp

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

Readme

Keywords

none

Package Sidebar

Install

npm i human-prp

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

106 kB

Total Files

33

Last publish

Collaborators

  • typedrat