Python Forum
how can I generate a password in hashlib
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how can I generate a password in hashlib
#11
@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
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

Reply


Messages In This Thread
RE: how can I generate a password in hashlib - by buran - May-07-2019, 06:22 PM
writing on csv file problem, python - by go127a - May-14-2019, 12:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] How to crack hash with hashlib Milan 0 1,542 Mar-09-2023, 08:25 PM
Last Post: Milan
  Python3 hashlib ogautier 1 1,631 Mar-28-2022, 04:42 AM
Last Post: snippsat
  Confusion about Hashlib Vysero 2 3,090 Jun-25-2018, 04:05 PM
Last Post: DeaD_EyE
  Using SHA3 (keccak) from Hashlib CryptoFlo 0 7,906 Mar-14-2018, 10:56 AM
Last Post: CryptoFlo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020