ai / nanoid

A tiny (124 bytes), secure, URL-friendly, unique string ID generator for JavaScript
https://zelark.github.io/nano-id-cc/
MIT License
24.61k stars 790 forks source link

Nano ID vs UUID Base64 #350

Closed tkrotoff closed 2 years ago

tkrotoff commented 2 years ago

The README states:

There are three main differences between Nano ID and UUID v4:

  1. Nano ID uses a bigger alphabet, so a similar number of random bits are packed in just 21 symbols instead of 36.

This is unfair: Nano ID should be compared to UUID Base64 or Base64url encoded.

ai commented 2 years ago

Many people use UUID directly. This not is for these people.