How can we hack a password by coding? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can we hack a password by coding?

19th Jun 2017, 6:08 PM
Kartik Gupta
Kartik Gupta - avatar
2 Answers
+ 3
At the end of this code the user is asked to enter a password in order to obtain a badge. How the code knows whether the password is correct or not, is with a function which resides in this code. This function takes the user's input and checks to see if it's the same as the correct one which is in the code. Now if you can find this function in this code then you can find the correct answer and then you can use it as the correct answer when the code asks for it. If you can do all that then you've hacked my code. https://code.sololearn.com/W309rnZYkOi2/?ref=app
19th Jun 2017, 6:40 PM
Ghauth Christians
Ghauth Christians - avatar
- 2
wtf ? @Gavin Christians
19th Jun 2017, 7:03 PM
clement
clement - avatar