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
#17
thanks I have made a new list from data on the previous code.
and I can reach the perfect results. except an extra empty line at the end. which I dont know how to remove it.
Quote:data= ['Daniel', '5104', 'elham', '9770']

    dataf=([data[i:i+2] for i in range(0, len(data), 2)])
and here is my output on the csv file. I have used below code to write on the csv file.
    with open(output_file_name, 'w', newline='') as output_handler:
        writer = csv.writer(output_handler)
        writer.writerows(dataf)
        output_handler.close()
and the output is:

Quote:danial,5104
elham,9770
####I receive an empty line here !!!
Reply


Messages In This Thread
RE: how can I generate a password in hashlib - by go127a - May-18-2019, 01: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,490 Mar-09-2023, 08:25 PM
Last Post: Milan
  Python3 hashlib ogautier 1 1,601 Mar-28-2022, 04:42 AM
Last Post: snippsat
  Confusion about Hashlib Vysero 2 3,070 Jun-25-2018, 04:05 PM
Last Post: DeaD_EyE
  Using SHA3 (keccak) from Hashlib CryptoFlo 0 7,830 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