guide
Which version should I use?
Same input must give the same id?v5or v8 with SHA-256Ids will be sorted or indexed?v7time first, random afterNeither?v4reveals nothing, needs nothing
| version | the 122 bits | sorts | reveals | reproducible | best for |
|---|---|---|---|---|---|
| v4 | 122 random | no | nothing | no | opaque ids, tokens |
| v7 | 48 time · 74 random | yes | time | no | database keys |
| v5 | 122 SHA-1 | no | nothing | yes | name-based ids |
| v3 | 122 MD5 | no | nothing | yes | legacy name-based ids |
| v1 | 60 time · 14 clock · 48 node | no | time, machine | no | legacy systems |
| v6 | 60 time · 14 clock · 48 node | yes | time, machine | no | v1 migrations |
| v8 | 122 yours | if you make it | up to you | up to you | custom hashes, clocks |