package core:encoding/uuid/legacy
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: int : uuid.VARIANT_BYTE_INDEX
VERSION_BYTE_INDEX ¶
VERSION_BYTE_INDEX: int : 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 Identifier that is used to represent the underlying namespace.
This can be any one of the Namespace_* values provided in the uuid package.
name: The byte slice which will be hashed with the namespace.
Returns:
result: The generated UUID.
Related Procedure Groups
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 Identifier that is used to represent the underlying namespace.
This can be any one of the Namespace_* values provided in the uuid package.
name: The string which will be hashed with the namespace.
Returns:
result: The generated UUID.
Related Procedure Groups
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 Identifier that is used to represent the underlying namespace.
This can be any one of the Namespace_* values provided in the uuid package.
name: The byte slice which will be hashed with the namespace.
Returns:
result: The generated UUID.
Related Procedure Groups
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 Identifier that is used to represent the underlying namespace.
This can be any one of the Namespace_* values provided in the uuid package.
name: The string which will be hashed with the namespace.
Returns:
result: The generated UUID.
Related Procedure Groups
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-2025-10 (vendor "odin") Windows_amd64 @ 2025-10-26 21:11:50.098539700 +0000 UTC