Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

FWUUIDV4

FWUUIDV4([lFormat]) -> cUUID

Generates a version 4 UUID.

FWUUIDV4AdvPL
01 · OVERVIEW

Overview

The official description identifies an algorithm based on random numbers. Its published example calls V1, apparently a copy error; this editorial example calls V4 as described by the function name and contract. The page does not establish a specific cryptographic guarantee for the installed implementation. (Sources: refs. 1–1.) The referenced community template calls FwUUIDv4() in a hidden field; this demonstrates a call rather than a security protection.

02 · SYNTAX

Syntax

FWUUIDV4([lFormat]) -> cUUID

Parameters

lFormat
LogicalOptional

Requests formatting.

Return value

Identifier string.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed456()
    Local cId := FWUUIDV4(.T.)
    // Identifier, not an authentication credential.
    ConOut(cId)
Return Nil
Expected result

Displays an identifier; its value depends on implementation and context. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Enforce storage uniqueness and do not use UUIDs as passwords, authorization or secrets.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. FWUUIDV4. TDN.
  2. danielflira/advplayl. editor.aph; commit 0cb048f.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha