Skip to content

Commit

Permalink
📝 Add MessageDigest/JDK version note.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwojnowski committed Jan 28, 2024
1 parent 4e101f7 commit 1330a3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ There are three options for length of the generated ID:
2. `Cuid2Long` - 32 characters
3. `Cuid2Custom[n]` - custom length (parametrised using literal types, e.g. `Cuid2Custom[10]` or `Cuid2Custom[27]`)

### Note on SHA3 support
This library uses SHA3, which is available from JDK 9 (b119) onwards. Alternative implementation can be provided via
`Cuid2Gen.custom`.

## Validation
```scala
val idDefault: Option[Cuid2] = Cuid2.validate("r0o5ncoizclu1b9iraz620cn")
Expand Down

0 comments on commit 1330a3f

Please sign in to comment.