@DeaD_EyE - if you check the other threads of @go127a you will see they are basic homeworks assignments. So I think it's more reading/writing from files, working wit data structures etc. with pinch of "hacker thrill" in this case. By the way I find this site very helpful and informative as introduction to the topis of password handling - https://crackstation.net/hashing-security.htm
@go127a - you already know how to write to a file as we see in your other thread - https://python-forum.io/showthread.php?tid=18147
you need
and your approach is not correct.
you need to open a file for reading and a file for writing (2 files)
read line by line from the input file.
using the hash from the file and the rainbow dict - find the password
write the name (from input file) and the password (from the dict) to output file
continue with the next line
I stop here because I already give away too much for a homework
@go127a - you already know how to write to a file as we see in your other thread - https://python-forum.io/showthread.php?tid=18147
you need
and your approach is not correct.
you need to open a file for reading and a file for writing (2 files)
read line by line from the input file.
using the hash from the file and the rainbow dict - find the password
write the name (from input file) and the password (from the dict) to output file
continue with the next line
I stop here because I already give away too much for a homework
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs