Hi, I am looking for a solution to what I believe is a complex problem (at least for myself but maybe not for you!). I am a computer technican, and I have to get an unlock code for some software on a weekly basis. This can take 5 minutes or over per phone call, and I work with a large team who also have to suffer the same deal, and wanted to save myself and my team a lot of time by generating the codes we need ourselves. The 4 digit codes generated are based on the system date. I know this because I can change the system date in the laptop, and the code for that day works on the software we need to use it for. It's a "code of the day" type problem which I have not found a solution for anywhere else. I have several days worth of codes and their corresponding dates which I can list here:
Code for 09/09/11 is 0953
Code for 10/09/11 is 7487
Code for 11/09/11 is 6993
Code for 12/09/11 is 4955
Code for 13/09/11 is 8361
Code for 14/09/11 is 6999
What I wanted to know is, what is the algorithm used to generate the 4 digit codes based on the systems date? There could be other implications such as the week number in the year being used for the working formula, date shifting, division, subtraction, multiplication or addition with a constant set of numbers being used to generate the code. If you could help me, I would greatly appreciate it and pay homage to your superior intellect! So far, nobody I know and nobody on the internet has managed to write code to solve this, and I would really like to write a program to generate the code if I knew the algorithm/formula used.
Many thanks for your time,
GlennRoast.com