package core:encoding/uuid/legacy
⌘K
Ctrl+K
or
/
Overview
Versions 3 and 5 of UUID generation, both of which use legacy (MD5 + SHA1) hashes.
Those are known these days to no longer be secure.
Index
Types (1)
Constants (2)
Variables (0)
This section is empty.
Procedures (4)
Procedure Groups (2)
Types
Identifier ¶
Identifier :: uuid.Identifier
Related Procedures With Parameters
- generate_v3_bytes
- generate_v3_string
- generate_v5_bytes
- generate_v5_string
- generate_v3 (procedure groups)
- generate_v5 (procedure groups)
Constants
VARIANT_BYTE_INDEX ¶
VARIANT_BYTE_INDEX :: uuid.VARIANT_BYTE_INDEX
VERSION_BYTE_INDEX ¶
VERSION_BYTE_INDEX :: uuid.VERSION_BYTE_INDEX
Variables
This section is empty.
Procedures
generate_v3_bytes ¶
generate_v3_bytes :: proc(namespace: uuid.Identifier, name: []u8) -> (result: uuid.Identifier) {…}
Generate a version 3 UUID.
This UUID is generated with a MD5 hash of a name and a namespace.
Inputs:
- namespace An
Identifierthat is used to represent the underlying namespace. This can be any one of theNamespace_*values provided in theuuidpackage. - name The byte slice which will be hashed with the namespace.
Returns:
- result The generated UUID.
generate_v3_string ¶
generate_v3_string :: proc( namespace: uuid.Identifier, name: string, ) -> (result: uuid.Identifier) {…}
Generate a version 3 UUID.
This UUID is generated with a MD5 hash of a name and a namespace.
Inputs:
- namespace An
Identifierthat is used to represent the underlying namespace. This can be any one of theNamespace_*values provided in theuuidpackage. - name The string which will be hashed with the namespace.
Returns:
- result The generated UUID.
generate_v5_bytes ¶
generate_v5_bytes :: proc(namespace: uuid.Identifier, name: []u8) -> (result: uuid.Identifier) {…}
Generate a version 5 UUID.
This UUID is generated with a SHA1 hash of a name and a namespace.
Inputs:
- namespace An
Identifierthat is used to represent the underlying namespace. This can be any one of theNamespace_*values provided in theuuidpackage. - name The byte slice which will be hashed with the namespace.
Returns:
- result The generated UUID.
generate_v5_string ¶
generate_v5_string :: proc( namespace: uuid.Identifier, name: string, ) -> (result: uuid.Identifier) {…}
Generate a version 5 UUID.
This UUID is generated with a SHA1 hash of a name and a namespace.
Inputs:
- namespace An
Identifierthat is used to represent the underlying namespace. This can be any one of theNamespace_*values provided in theuuidpackage. - name The string which will be hashed with the namespace.
Returns:
- result The generated UUID.
Procedure Groups
generate_v3 ¶
generate_v3 :: proc{ generate_v3_bytes, generate_v3_string, }
generate_v5 ¶
generate_v5 :: proc{ generate_v5_bytes, generate_v5_string, }
Source Files
Generation Information
Generated with odin version dev-2026-10 (vendor "odin") Windows_amd64 @ 2026-10-12 23:46:18.383355400 +0000 UTC