blob: c020063389ec7c5a8dec6d6d1a53aaa3fe87b71d [file] [log] [blame]
.. zephyr:code-sample:: uuid
:name: UUID
Manipulate UUID v4 and v5 compliant with IETF RFC 9562.
Overview
********
This sample app demonstrates the use of the :c:group:`uuid` utilities to generate and manipulate
UUIDs accordingly to IETF RFC 9562.
The following functionality is demonstrated:
- UUIDv4 generation
- UUIDv5 generation from namespace and data
- UUID conversion from/to string and to base64 and base64 URL safe formats
Requirements
************
This sample relies on the following modules:
- MbedTLS for the UUIDv5 hash functions
- Base64 for the base64 encoding of UUIDs
- Entropy source for the pseudo-random generation of UUIDv4
Building and Running
********************
Use the standard ``west`` commands to build and flash this application.
For example, for ``native_sim``:
.. zephyr-app-commands::
:zephyr-app: samples/subsys/uuid
:host-os: unix
:board: native_sim
:goals: run
:compact: