News for hackers. Stuff that matters.
Re:Understanding UUIDs, ULIDs and string representations by samhw on Wednesday January 05, 2022 @07:19AM (#29808063)
Yup, it can absolutely be extracted. It's not hashed or anything like that, it's just a sequence of fields in the order that the spec gives. It's really not even 'extract', it's more just 'read'.

I think people may be misled by the fact that UUIDs are frequently hex-encoded prior to being sent over the wire (or even, stupidly, in the database). It looks like a hash, but it's very much not one.

Edit: This is all referring to RFC 4122, to be clear. It's entirely possible that there are some other UUID schemes out there which do hash their contents.

Re:Understanding UUIDs, ULIDs and string representations by elevader on Wednesday January 05, 2022 @07:43AM (#29808244)
Definitely didn't know that, thanks for that insight, really appreciate it! I always just assumed they were hashed but never really bothered to check. V4 shouldn't have this problem, right?