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.

Collection Info

View Source
Collection
core
Path
encoding/uuid/legacy
Entries
9

Source Files

Constants

2

VARIANT_BYTE_INDEX #

Source
VARIANT_BYTE_INDEX :: uuid.VARIANT_BYTE_INDEX

VERSION_BYTE_INDEX #

Source
VERSION_BYTE_INDEX :: uuid.VERSION_BYTE_INDEX

Types

1

Procedures

4

generate_v3_bytes #

Source
generate_v3_bytes :: proc(namespace: Identifier, name: []u8) -> (result: 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.

generate_v3_string #

Source
generate_v3_string :: proc(namespace: Identifier, name: string) -> (result: 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.

generate_v5_bytes #

Source
generate_v5_bytes :: proc(namespace: Identifier, name: []u8) -> (result: 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.

generate_v5_string #

Source
generate_v5_string :: proc(namespace: Identifier, name: string) -> (result: 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.

Procedure Groups

2