I have to build a program which takes a password as input and then the password machine hacks it. It should do it by looping through the ascii character map 4 times i.e a, b ,c etc followed be aa, ab, ac. It's meant to simulate a "brute force attack". Can you offer me any advice in checking the ascii map in this way using a loop and also I need to return the amount of time taken for it to hack it. Is there a way I can return the seconds, or will I have to simulate it? Thanks!
poopuh
0
Light Poster
Recommended Answers
Jump to PostYou need 4 nested (identical) loops.
The System class has a method that gives you the current time in mSec. Call it before and after, subtract the two for elapsed time.Have a go, see how far you get, come back here if you get stuck (post what you hace …
All 4 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
poopuh
0
Light Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
poopuh
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.