Version 5 UUID

Version 5 UUIDs are another type of name-based UUID, similar to Version 3, but they use the SHA-1 hashing algorithm instead of MD5. SHA-1 is more secure than MD5 and offers better collision resistance, although it's still not recommended for cryptographic purposes due to vulnerabilities. Version 5 UUIDs are deterministic like Version 3, ensuring the same input will consistently produce the same UUID. They are suitable for scenarios where UUIDs need to be generated from specific names within namespaces and where higher security than MD5 is required.

Version 5 UUID Generation Code Examples

Python code to generate version 5 UUID
Javascript code to generate version 5 UUID