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
#21
(May-19-2019, 09:01 AM)go127a Wrote: it works, I wonder that you wrote it in 16 lines!!
That is because you don't listen. I have outlined several times what you have to do...

(May-19-2019, 09:01 AM)go127a Wrote: for the third line in input, the code will return '0' which is incorrect.
second and third are exactly the same hash. my code returns correct output
Output:
danial,5104 elham,9770 stefi,9770
(May-19-2019, 09:01 AM)go127a Wrote: also I should use (OrderedDict from collections library) to make a dictionary and solve it with dictionary.
if this is homework with specific requirments it should be in Homework section and you should post the assignment and restrictions verbatim.
you can replace the normal dict with OrderedDict though it is not necessary for this problen and also in 3.7+ it really doesn't matter.
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


Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] How to crack hash with hashlib Milan 0 1,324 Mar-09-2023, 08:25 PM
Last Post: Milan
  Python3 hashlib ogautier 1 1,494 Mar-28-2022, 04:42 AM
Last Post: snippsat
  Confusion about Hashlib Vysero 2 2,944 Jun-25-2018, 04:05 PM
Last Post: DeaD_EyE
  Using SHA3 (keccak) from Hashlib CryptoFlo 0 7,572 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