CUID (collision-resistant unique identifier)
ID cuid
DatatypeNot PIIidentifierDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Identifier of the cuid library, written as the letter c followed by 24 lowercase base36 characters that encode a timestamp, a counter, a host fingerprint and random data. Prisma generates it with @default(cuid()). Its authors deprecated it for security reasons, since parts of it can be guessed, and recommend Cuid2 (cuid2) instead. The 25-character length holds while the base36 timestamp has 8 digits, which lasts until 2059.
- Categories
- Universal unique identifiers
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Quality
- 80/100 · missing: mapping (Wikidata, Schema.org, ...), detector coverage
- Metacrafter rules
- no detection rule yet
- Supported by tools
- no tool record lists this type yet
Regular expression
^c[0-9a-z]{24}$
Python re syntax.
Examples
| Value | Description |
|---|---|
| cjld2cjxh0000qzrmn831i7rn | Example of the cuid README |
| cjld2cyuq0000t3rmniod1foy | Example of the cuid README |
| tz4a98xxat96iws9zmbrgj3a invalid | Cuid2 of the default length, see cuid2 |
| Cjld2cjxh0000qzrmn831i7rn invalid | Uppercase letter |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Идентификатор CUID |
Sources
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/cuid - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/identifiers/cuid.yamlon GitHub