Open jhgorse opened 8 years ago
in Core.c around line 390, why does this occur?
for (k=CORE_minlength;k<wordlength;k++){
maxcombination=1;
for (l=0;l<k;l++)
maxcombination*=strlen(CORE_charset);
offset+=maxcombination;
}
I believe this maxcombination is messing up the offset, which then gives the wrong computePwd().
More tests to confirm with index added to incorrect password for reference
→ ../src/truecrack -t ripemd160_aes.test.tc -c tes -m 4 -s 0
TrueCrack v3.6
Website: http://code.google.com/p/truecrack
Contact us: infotruecrack@gmail.com
Found password: "tsts" 99
Password length: "4"
Total computations: "120"
→ ../src/truecrack -t ripemd160_aes.test.tc -c tes -m 4 -s 1
TrueCrack v3.6
Website: http://code.google.com/p/truecrack
Contact us: infotruecrack@gmail.com
Found password: "tsts" 99
Password length: "4"
Total computations: "120"
→ ../src/truecrack -t ripemd160_aes.test.tc -c tes -m 4 -s 2
TrueCrack v3.6
Website: http://code.google.com/p/truecrack
Contact us: infotruecrack@gmail.com
Found password: "tets" 96
Password length: "4"
Total computations: "117"
→ ../src/truecrack -t ripemd160_aes.test.tc -c tes -m 4 -s 3
TrueCrack v3.6
Website: http://code.google.com/p/truecrack
Contact us: infotruecrack@gmail.com
Found password: "tese" 87
Password length: "4"
Total computations: "108"
→ ../src/truecrack -t ripemd160_aes.test.tc -c tes -m 4 -s 4
TrueCrack v3.6
Website: http://code.google.com/p/truecrack
Contact us: infotruecrack@gmail.com
Found password: "test" 60
Password length: "4"
Total computations: "81"
ripemd160_aes.test.tc test fails on Fedora 22, NVidia GTX 970
Correct answer is "test".
This works when "-s 4" is appended, reducing computations from 120 to 81:
Also, when "-v" is added, the computation for solving it is correct but reported incorrectly.