It has a method to public method to getPassword

Jan 10 2016 3:10 AM
It has a method to public method to getPassword. That takes a date as input and returns a string as output. The method should take the date and use some type of encrytion, encoding, etc to return say an 10-12 character password. The password cannot change by 1 each time. I think the solution should be something like this. Take the Long date string like January 10, 2016 and create an array and store the character code for each letter or number in the array. Then multiply each number by the the day number (10 in this case) and then 3. Then divide by the max ansi charactor code we can use 126-33 = 93. Get the remainder and then add 33. We don't want to use 0-32 or 127 and up. In the end we should convert each code to to a new code. Return just the first 10 new characters as the passcode.
>
> A windows app that you can type in a short date and hit a button that says get code. The code should be displayed in a label on the app and copied to the users clipboard.

Answers (1)