Skip to content

Commit 9f4fa2e

Browse files
Add AllWords to CorePassSearchSpace + no need to pad MaxPasswordSize to be divisible by 4
1 parent 3abb4b1 commit 9f4fa2e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Src/FinderOuter/Services/SearchSpaces/CorePassSearchSpace.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class CorePassSearchSpace : SearchSpaceBase
2020
/// </summary>
2121
public int PasswordLength { get; private set; }
2222
/// <summary>
23-
/// Maximum possible password size in bytes (will be padded to be divisible by 4)
23+
/// Maximum possible password size in bytes
2424
/// </summary>
2525
public int MaxPasswordSize { get; private set; }
2626
public byte[] Encrypted { get; private set; }
@@ -31,6 +31,8 @@ public class CorePassSearchSpace : SearchSpaceBase
3131
public int[] PermutationLengths { get; private set; }
3232
public int[] PermutationSizes { get; private set; }
3333

34+
public string[] AllWords { get; set; }
35+
3436

3537
public bool Process(string hex, int passLength, out string error)
3638
{
@@ -213,10 +215,6 @@ public bool SetValues(string[][] result, out string error)
213215
PermutationCounts[index2++] = item.Length;
214216
}
215217

216-
while (MaxPasswordSize % 4 != 0)
217-
{
218-
MaxPasswordSize++;
219-
}
220218
if (MaxPasswordSize > Sha512Fo.BlockByteSize)
221219
{
222220
error = "Password is too long (bigger than SHA512 block size).";

0 commit comments

Comments
 (0)