# Date base rolling algorithm

Hi All,

I am trying to work out an algorithm used for generating username/password based on current date. I have a few examples below.
Would love to know if anyone has come across this before. Thank you for your assistance.

24/08/2010      11                      70
22/06/2010      11                      64
12/07/2011      11                      34
15/06/2012      23                      43
###### Who is Participating?

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
I have used the datetime and other information to generate a unique code. Is that what you're asking? Or are you asking if I can crack your algorithm to find the passwords using the date and username?
Commented:
If you want to create the name and pw it will help to know if you want then created as the dates come in or if you have all the dates available before you create. (in the latter case put them in asending order first.)
Author Commented:
Hi unfortunately this is all the information I have. I'm just trying to work out a pattern. My question is if anyone can identify a pattern in this series.

Thank you
Author Commented:
The passwords are created as they come in..
Commented:
There are many possibilities. You have to have at least one more item to test your guess.
For example: you have the first three usernames as 11. You get the next three by adding 1 to each digit of the preceding username, etc
This does not sound very likely but is possible. It is already highly unlikely that most of the user names are the same.
Author Commented:
Hi I'm more interested in the password algorithm because I think once the password is worked out the user name can be deduced from that.
Commented:
>>I'm more interested in the password algorithm
OK, then try:

``````let divisor = 3
pwd = (day*divisor) - Int(month/divisor)
``````
NOTE: Int(x/y) means "Integer division" -- ignore the fractional part.

Experts Exchange Solution brought to you by