Re: [slightly OT] Licence code design
Re: [slightly OT] Licence code design
- Subject: Re: [slightly OT] Licence code design
- From: Simon Stapleton <email@hidden>
- Date: Thu, 8 Aug 2002 23:31:22 +0200
Date: Thu, 8 Aug 2002 20:54:29 +0100
Subject: [slightly OT] Licence code design
From: Jeremy Dronfield <email@hidden>
To: Cocoa-Dev Apple <email@hidden>
Hello All,
I've developed a little Cocoa app for quickly generating lists of
licence/serial codes (my own codes, you understand, not other people's).
I wondered if anyone out there with shareware/commercial experience
could offer me any tips on designing code formats. For example, how long
a code should or shouldn't be, any particular character types to
include/avoid, whether to avoid repeating a substring from one code
string to another and so on. (I'm assuming here, of course, that licence
code design has more to it than just make 'em random.)
-Jeremy
A lot of people seem to be using the UUID ASCII format for key entry,
which makes sense, and your key can be a simple 128-bit value. No need
to bother with the hassle of actually encoding all those nasty
characters, really. Generate your 128bit value somehow[1] and you'll be
able to manipulate it using the core foundation functions described in
CFUUID.h. You might want a UUID formatter for entry, there may already
be one but if not it shouldn't be too difficult to knock together,
really (hint - the display format is 16 byte values, in hex format,
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
see
file://localhost/Developer/Documentation/CoreFoundation/UtilityServices/Utility_Services_ConcTask/
index.html for further details on UUIDs in general
Simon
[1] of course, writing the algorithm used for generation and validation
of this value is an exercise best left to the reader, and I'm _not_
opening that can of worms again.
--
PGP Key Id : 0x50D0698D
--
How's the building work going? Do we have a viable crapper yet? Check
it out at :
<
http://www.tufty.co.uk/Move/index.html>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.