News for hackers. Stuff that matters.
Re:TIL: Versions of UUID and when to use them by motohagiography on Sunday August 25, 2024 @04:26PM (#41351053)
While I didn't know the details of ones other than 4, the one really useful one missing would be using some SHA256 data with a counter, not unlike PBKDF2. It could be a privacy preserving derived identifier, where you you could loosely prove a given UUID had been derived from a given seed.
Re:TIL: Versions of UUID and when to use them by tacitusarc on Sunday August 25, 2024 @07:24PM (#41352439)
Like V3 but with a specifiable hash algorithm.
Re:TIL: Versions of UUID and when to use them by kyzer-davis on Wednesday September 04, 2024 @05:44PM (#41451201)
The appendix details how one can do a sha256 style v8 algo that is basically v5 with the algorithm swapped. In theory one could do this for any hashing algorithm. https://www.rfc-editor.org/rfc/rfc9562.html#name-example-of-...

Though I am working on a way to solve this problem with UUIDs beyond 128 bits so we don't have to truncate the hash.

Re:TIL: Versions of UUID and when to use them by dchest on Monday August 26, 2024 @03:16AM (#41354742)
If you really need it, consider UUIDv4 as encoding, and use your cryptographic algorithm to create a 122-bit output and encode it as a UUID.

Otherwise, you'd want longer outputs.