TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Gudipati Swetha
NA
1
618
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.
Reply
Answers (
1
)
Tree View Main, sub, and sub-sub nodes from sql db table
Saving document files to database