PureBasic
PureBasic
Generate UUID
See more Encryption Examples
Demonstrates how to generate a random UUID string (also known as GUID) having the standard UUID format such as "de305d54-75b4-431b-adb2-eb6b9e546014".Chilkat PureBasic Downloads
IncludeFile "CkCrypt2.pb"
Procedure ChilkatExample()
crypt.i = CkCrypt2::ckCreate()
If crypt.i = 0
Debug "Failed to create object."
ProcedureReturn
EndIf
uuid.s = CkCrypt2::ckGenerateUuid(crypt)
Debug uuid
CkCrypt2::ckDispose(crypt)
ProcedureReturn
EndProcedure