Timeline for PSET2 (Crack) - Comparing 2 hashes with strcmp() always returns 0
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 13, 2017 at 0:23 | comment | added | curiouskiwi♦ |
You shouldn't need to compare 2 hashes that were both from crypt because per the spec, the first hash is given to you by the user on the command line. Alternatively, you can use strcpy to copy the value to a new string.
|
|
Nov 13, 2017 at 0:00 | comment | added | Bogdan M. | Thanks! How am I then able to compare two different hashes in one program? | |
Nov 12, 2017 at 23:48 | vote | accept | Bogdan M. | ||
Nov 12, 2017 at 23:18 | history | answered | curiouskiwi♦ | CC BY-SA 3.0 |