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

2.0.0 • Public • Published

Crid - The cryptographic ID serializer

Build Status Coverage Status

It takes one or two Numbers and encodes them as a 11 char short-url in a way that:

  • appears random
  • is hard to enumerate and predict

It is also especially built to be tiny, with:

  • zero dependencies
  • ~130 source-lines-of-code

Under the Hood, it uses the easy to implement Speck Cipher and Base58 encoding.

Apart from that, it is a testbed for my personal rust experiments :-)

Dependencies (0)

    Dev Dependencies (11)

    Package Sidebar

    Install

    npm i crid

    Weekly Downloads

    1

    Version

    2.0.0

    License

    LGPL-3.0

    Unpacked Size

    14 kB

    Total Files

    13

    Last publish

    Collaborators

    • swatinem