# UUID V5 > Supported in: Batch, Faster, Streaming Generates a deterministic UUID v5 from a namespace UUID and a name string using SHA-1 hashing (RFC 4122). The same namespace and name will always produce the same UUID. Returns null if the namespace is not a valid UUID. **Expression categories:** String ## Declared arguments * **Name:** The name string to hash with the namespace to produce a deterministic UUID.
*Expression\* * **Namespace UUID:** A valid UUID string to use as the namespace.
*Expression\* **Output type:** *String* ## Examples ### Example 1: Base case **Description:** Generate a deterministic UUID v5 from a namespace UUID and name string. **Argument values:** * **Name:** `name` * **Namespace UUID:** `namespace` | namespace | name | **Output** | | ----- | ----- | ----- | | 6ba7b810-9dad-11d1-80b4-00c04fd430c8 | hello | 9342d47a-1bab-5709-9869-c840b2eac501 | | 6BA7B810-9DAD-11D1-80B4-00C04FD430C8 | hello | 9342d47a-1bab-5709-9869-c840b2eac501 | | 6ba7b811-9dad-11d1-80b4-00c04fd430c8 | https://example.com | 4fd35a71-71ef-5a55-a9d9-aa75c889a6d0 | *** ### Example 2: Null case **Argument values:** * **Name:** `name` * **Namespace UUID:** `namespace` | namespace | name | **Output** | | ----- | ----- | ----- | | *null* | hello | *null* | | 6ba7b810-9dad-11d1-80b4-00c04fd430c8 | *null* | *null* | | *null* | *null* | *null* | *** ### Example 3: Edge case **Argument values:** * **Name:** `name` * **Namespace UUID:** `namespace` | namespace | name | **Output** | | ----- | ----- | ----- | | not-a-uuid | hello | *null* | | *empty string* | hello | *null* | | 1-2-3-4-5 | hello | 85cac0b3-f821-5e29-ad03-7e26926dfdc3 | | +1-2-3-4-5 | hello | 85cac0b3-f821-5e29-ad03-7e26926dfdc3 | | 123456789-1-1-1-1 | hello | 521c6c9d-6fff-59c1-aaed-00192ec1d25c | | 0000000000000000000001-1-1-1-1 | hello | 8bfab908-d58d-575d-b302-93686b232a3d | | 6ba7b8109dad11d180b400c04fd430c8 | hello | *null* | | {6ba7b810-9dad-11d1-80b4-00c04fd430c8} | hello | *null* | | urn\:uuid:6ba7b810-9dad-11d1-80b4-00c04fd430c8 | hello | *null* | ***