GUID (Global Unique Identifier) Flashcards
What is UUID ?
Universally Unique Identifier. An 128 bits number used to identify information in computer systems.
What is GUID?
GUID is Microsoft implementation of UUIS.
Where is GUID used for?
- Identify OS components. (Files, Pofiles, Registry)
- Identify Objects. (Interfaces, Manage Entry Points Vectors EPV’s, Class objects)
What is Windows GUID format ?
Its a long sequence of digits. Written as a 32-char hex string. With a length of 16 bytes. (128 bits, 16 x 8 bits)
(4 bytes) - (3 bytes) - (3 bytes) - (3 bytes) - (6 bytes)
The first 3 groups are “little endian” and the 4th group is “big endian”
The last 6 bytes is the mac address.
What is UUID binary encoding ?
The binary encoding of UUID varies between systems. Most systems encode the UUID entirely in a “big endian” format.
Windows used a mixed-endian format like the first 3 groups are “little endian” and the 4th group is “big endian”
How many UUID version are there? And how can you determine the version ?
There are 5 version. Version 4 is the most common used. The version can be found in the first digit of the 3th group.
UUID v1
Using a timestamp + mac address (Can be easily faked)
UUID v2
Using a timestamp + mac address but first 32 bits are replaced by user’s Posix.
UUID v3
MD5 Hash of namespace identifier + name