From 9f4fa2ee874806e8019b1e06f6d522da0d4b3c9d Mon Sep 17 00:00:00 2001 From: Coding-Enthusiast Date: Mon, 11 Nov 2024 14:22:40 +0330 Subject: [PATCH] Add AllWords to CorePassSearchSpace + no need to pad MaxPasswordSize to be divisible by 4 --- .../Services/SearchSpaces/CorePassSearchSpace.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Src/FinderOuter/Services/SearchSpaces/CorePassSearchSpace.cs b/Src/FinderOuter/Services/SearchSpaces/CorePassSearchSpace.cs index db77516..4d14c2d 100644 --- a/Src/FinderOuter/Services/SearchSpaces/CorePassSearchSpace.cs +++ b/Src/FinderOuter/Services/SearchSpaces/CorePassSearchSpace.cs @@ -20,7 +20,7 @@ public class CorePassSearchSpace : SearchSpaceBase /// public int PasswordLength { get; private set; } /// - /// Maximum possible password size in bytes (will be padded to be divisible by 4) + /// Maximum possible password size in bytes /// public int MaxPasswordSize { get; private set; } public byte[] Encrypted { get; private set; } @@ -31,6 +31,8 @@ public class CorePassSearchSpace : SearchSpaceBase public int[] PermutationLengths { get; private set; } public int[] PermutationSizes { get; private set; } + public string[] AllWords { get; set; } + public bool Process(string hex, int passLength, out string error) { @@ -213,10 +215,6 @@ public bool SetValues(string[][] result, out string error) PermutationCounts[index2++] = item.Length; } - while (MaxPasswordSize % 4 != 0) - { - MaxPasswordSize++; - } if (MaxPasswordSize > Sha512Fo.BlockByteSize) { error = "Password is too long (bigger than SHA512 block size).";