Volkan Özçelik · @volkan
16 followers · 821 posts · Server z2h.dev

Nano ID [1] is a library for generating random IDs. Likewise UUID, there is a probability of duplicate IDs. However, this probability is extremely small.

NanoID Collision Calculator [2] is a web app that calculates the possibility of a nano id collision based on the ids’ length.

[1] github.com/ai/nanoid

[2] zelark.github.io/nano-id-cc/

#NanoID #tools #statistics #hashing #collision #PrimaryKey #guid #uuid

Last updated 2 years ago

Stéphane Klein · @stephane_klein
79 followers · 141 posts · Server mamot.fr

Souhaitant utiliser des ids random plus courts que des dans les urls d'une application web, j'ai testé dans le repository suivant une implémentation de 100% basé sur .

github.com/stephane-klein/nano

#proofofconcept #postgresql #NanoID #uuid

Last updated 2 years ago