Sample code for 30+ languages & platforms
Objective-C

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 Objective-C Downloads

Objective-C
#import <CkoCrypt2.h>
#import <NSString.h>

CkoCrypt2 *crypt = [[CkoCrypt2 alloc] init];

NSString *uuid = [crypt GenerateUuid];

NSLog(@"%@",uuid);