# 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?
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?
0
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.)
0
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
0
Author Commented:
The passwords are created as they come in..
0
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.
0
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.
0
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.
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Author Commented:
Thank you. I shall try this for other dates and report back.
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Algorithms

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.