Discussion Locked

VB, GUID's & UUID's - Do you know a way?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

We have a security situation with a shrink wrapped VB6 App, that our company made and sells internationally.

There is a function in the App which allows the user to transfer licenses between PC's, which we now suspect is open to abuse...

As a rethink of our strategy, we considered using GUID's (and their nature) as a public key, which could at least validate any programmatic actions we request them to take are performed, before we release serial keys.

The key things I would like to know about GUID's are these:

What is a GUID composed of?
Does it contain a 'Hexadecimal Date-Time- Stamp'?
If it does could this be extracted and converted to a 'String Date-Time-Stamp'?

That's basically it... Just knowing if the above is possible would help!!

If you could provide some VB code which perform this function, that would qualify you for extra Karma.

Good luck...

3 replies

by rambabu tadepalli

Hai,

GUID IS a unique, random 16-byte user ID, represented as 32 hexadecimal digits. GUID is a string concatenated from the IP address of the requestor, the IP address of this server, the date, and the time of day.

For further info like how togenerate a GUID and how to send it to end user etc., U can visit the following link..
http://www.guid.org/

best wishes...

by limbo

Sorry, the hyperlink is a suitable description, but what I was primarly concerend with is the date element. Further research on recovered this result...

"GUID's are a subset of UUID's, They are represented the same way (a 16
Byte, hex number). In a GUID, the Random portion is replaced by an
Assigned Identifier - usually assigned to an entire organisation by
none other than Billy-Boy Gates's Empire.

There are two types of UUID - Random, and Time-Based. A Random UUID
is 100% Random, no date, time, network or other useful information exists
in a Random UUID.

However, Time-Based UUID's contain some interesting stuff. The last 6
Bytes is the MAC Address of the PC Which created the UUID. The MAC
Address is 100% unique in the world, and will never be duplicated.

There is alos a time-based portion, which is generated from the Date,
and the number of ticks since midnight. On an IBM System running
Windows, this is 18.2 ticks/sec, running a UN*X OS, it's about 1,000ticks/sec, other boxes can be as fine as 100,000 ticks/sec. Only the
lowest 4 or 6 bytes of the tick-counter are used however, so some time
information is lost.

There is alos a small random element introduced, to increase the uniqueness, in case the computer's clock is set back for some reason
(such as DST).

So, from that, you would think that Most UUID's could be reversed?

Well, sort of. Older UUID's can certainly be reversed to find out
which Machine generated it, and roughly when, Buuuut... Newer UUID's, and
GUID's in particular have had several new fields inserted. In order
to keep the length a consistent 16 Bytes, these newer UUID's are actually
encoded using the MD5 hashing alcorithm. This still generates a
unique ID, but it destroys All the original data, including date and time
information, and MAC Address.

Well, I hope that little lot helps a bit... :)" Mike Insch

This discussion is closed to new replies.