Crypto UUID v4

An asset by JTE
The page banner background of a mountain and forest
Crypto UUID v4 hero image

Quick Information

0 ratings
Crypto UUID v4 icon image
JTE
Crypto UUID v4

This addon provides cryptographically secure and efficient UUID v4 objects and string representations in line with official guidelines.Web builds will attempt to use the web browser-provided crypto object if available, and only fall back to weak pseudorandom numbers as a last resort.Includes object comparison and deserialization functionality.

Supported Engine Version
3.2
Version String
1.0.1
License Version
MIT
Support Level
community
Modified Date
3 years ago
Git URL
Issue URL

Crypto UUID v4

This addon provides cryptographically secure UUID v4 objects (as references) and String representations in line with official guidelines

Web builds will attempt to use the web browser-provided crypto object if available, and only fall back to weak pseudorandom numbers as a last resort.

Usage

Generating UUIDs:

  1. UUID.new() -> UUID generates a new UUIDv4 object.
  2. UUID.v4() -> String generates a UUIDv4 string.

Comparing UUIDs:

  1. uuid_a.is_equal(uuid_b) -> bool can compare UUID objects, a UUID object against a UUID string, or a UUID object against a PoolByteArray containing 16 bytes.
  2. str(uuid_a) == str(uuid_b) can compare any two UUID string representations or objects

Other functionality:

  • str(uuid) returns the formatted String representation of a UUID object, in the same standard format as UUID.v4() would generate.
  • UUID.new(from: String) -> UUID returns a UUID object from a valid UUID String representation (eg. if serialized)
  • UUID.new(from: PoolByteArray) -> UUID returns a UUID object from a PoolByteArray containing 16 bytes
  • UUID.v4bin() -> PoolByteArray generates an array containing 16 bytes
  • UUID.format(data: PoolByteArray) -> String generates a UUID string from a PoolByteArray containing 16 bytes (no validation checks)

This addon provides cryptographically secure and efficient UUID v4 objects and string representations in line with official guidelines.

Web builds will attempt to use the web browser-provided crypto object if available, and only fall back to weak pseudorandom numbers as a last resort.

Includes object comparison and deserialization functionality.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Crypto UUID v4 icon image
JTE
Crypto UUID v4

This addon provides cryptographically secure and efficient UUID v4 objects and string representations in line with official guidelines.Web builds will attempt to use the web browser-provided crypto object if available, and only fall back to weak pseudorandom numbers as a last resort.Includes object comparison and deserialization functionality.

Supported Engine Version
3.2
Version String
1.0.1
License Version
MIT
Support Level
community
Modified Date
3 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers