12/23/2023 0 Comments Uuid v4 generator![]() ![]() ![]() uuid-ossp can now be built without the OSSP library on some platforms. While the OSSP UUID library can still be found at, it is not well maintained, and is becoming increasingly difficult to port to newer platforms. Historically this module depended on the OSSP UUID library, which accounts for the module's name. Version 5 should be preferred over version 3 because SHA-1 is thought to be more secure than MD5. Generates a version 5 UUID, which works like a version 3 UUID except that SHA-1 is used as a hashing method. Uuid_generate_v5 ( namespace uuid, name text ) → uuid Generates a version 4 UUID, which is derived entirely from random numbers. The generation of UUIDs by this method has no random or environment-dependent element and is therefore reproducible. The name parameter will be MD5-hashed, so the cleartext cannot be derived from the generated UUID. SELECT uuid_generate_v3(uuid_ns_url(), '') (It could be any UUID in theory.) The name is an identifier in the selected namespace. The namespace should be one of the special constants produced by the uuid_ns_*() functions shown in Table F.35. Generates a version 3 UUID in the given namespace using the specified input name. Uuid_generate_v3 ( namespace uuid, name text ) → uuid Generates a version 1 UUID, but uses a random multicast MAC address instead of the real MAC address of the computer. Note that UUIDs of this kind reveal the identity of the computer that created the identifier and the time at which it did so, which might make it unsuitable for certain security-sensitive applications. This involves the MAC address of the computer and a time stamp. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |