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
#14
@go127a, please read carefully and follow what you are told to do

(May-07-2019, 06:22 PM)buran Wrote: 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

if you want to first process all of the input file and only then to write to file, then you need to come up with a structure like this
[['danial', '5104'], ['elham', '9770']], i.e. list of lists and then pass this data structure to writer.writerows()
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-14-2019, 12:39 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,502 Mar-09-2023, 08:25 PM
Last Post: Milan
  Python3 hashlib ogautier 1 1,611 Mar-28-2022, 04:42 AM
Last Post: snippsat
  Confusion about Hashlib Vysero 2 3,075 Jun-25-2018, 04:05 PM
Last Post: DeaD_EyE
  Using SHA3 (keccak) from Hashlib CryptoFlo 0 7,852 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