Method or Component to generate serial numbers?



Does anyone know about a method or component to generate unique serial numbers?

The resulting strings should contain only a subset of printable characters that make the string easy to read (only uppercase and numbers, no O and 0, no I and 1) and should be 12-20 characters long.

We will give an unique ID (integer) to the routine to produce unique results. But given the same ID the result must be always the same.

Sequences of IDs (1, 2, 3, ...) should produce results that differ significantly, so the the sequence is not easy to recognize.
(Otherwise we could simply take the formatted ID...)

This is NOT meant for some sort of copy protection!

Best regards
Uwe Raabe
.



Relevant Pages

  • Re: c printf/variables content visible in compiled binary. How to hide that ?
    ... It will make it entirely into printable characters. ... Then concatenate these into a dynamic buffer at runtime. ... This could of course be combined with order reversal, case conversion, etc. of course this can still be beaten with a debugger, yadda yadda, but if you want to beat "strings" this will do it. ... There are many other simple tricks, like maybe an array of chars with the high bits turned on so they don't look like printable ASCII characters. ...
    (comp.unix.programmer)
  • Re: Null-terminated strings: the final analysis.
    ... And none of this addresses the major defect of null-terminated ... strings, which is that they can't represent strings containing ... Bearing in mind that strings contain only printable characters, ... what possible use can you have for a zero byte? ...
    (comp.lang.c)
  • Re: Null-terminated strings: the final analysis.
    ... And none of this addresses the major defect of null-terminated ... strings, which is that they can't represent strings containing ... Bearing in mind that strings contain only printable characters, ... what possible use can you have for a zero byte? ...
    (comp.lang.c)