Question How can I create a unique key

Musab

Member
Joined
Apr 9, 2008
Messages
21
Programming Experience
1-3
Hello,

Given a number, how can I create a unique key from this number. This key should never be repeated when given different number (So its more math algorithms)

More explanation:

Here is exactly what my program does, I generate a code depending on the system time. For example if today is 07/05/08 16:05:55

The generated code is 0508160555 <---last 10 digit only

I need to use this number to generate a unique key for licensing, but the algorithm that I'm using is poor, rarely it generates an existing key from different number.

I don't want to use MD5 because I still need to be able to decode, means get the code back using the key.

Any help will be greate..Thank you!
 
Back
Top