4 ms·
Why isn't there an option with a strong cryptographic hash like SHA-256?
by Zamicol 4y ago
Why isn't there an option with a strong cryptographic hash like SHA-256?
- staticassertion 4y agoIt would be slow and doesn't really serve a purpose since you either have uuids that are totally random or uuids that need to preserve their structure.
- jwilk 4y agoOr UUIDs derived from other identifiers: https://datatracker.ietf.org/doc/html/rfc4122#section-4.3 https://datatracker.ietf.org/doc/html/rfc4122#section-4.3
- jamesrom 4y agoYou could utilize UUIDv8 for this purpose. Of course v5 isn't strong in the cryptographic sense, but probably suits most purposes where you need a unique ID per an object: https://datatracker.ietf.org/doc/html/rfc4122#section-4.3 https://datatracker.ietf.org/doc/html/rfc4122#section-4.3 The idea of using UUIDs for cryptographic purposes is probably misguided anyway.