From 8e95f3053c9fa569e6d8cde43e3a5bbe109b4c22 Mon Sep 17 00:00:00 2001 From: Roman Hergenreder Date: Sat, 13 Jun 2020 13:19:18 +0200 Subject: [PATCH] SHA256 --- crack_hash.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crack_hash.py b/crack_hash.py index f3e43f2..bbd3f6f 100755 --- a/crack_hash.py +++ b/crack_hash.py @@ -31,6 +31,8 @@ class HashType(enum.Enum): # SHA2 RAW_SHA2_224 = 1300 RAW_SHA2_256 = 1400 + SHA256_PASS_SALT = 1410 + SHA256_SALT_PASS = 1420 RAW_SHA2_384 = 10800 RAW_SHA2_512 = 1700 SHA512_PASS_SALT = 1710 @@ -139,6 +141,13 @@ class Hash: else: self.type.append(HashType.RAW_SHA1) self.type.append(HashType.RAW_RIPEMD_160) + elif hash_len == 64: + if self.isSalted: + self.type.append(HashType.SHA256_PASS_SALT) + self.type.append(HashType.SHA256_SALT_PASS) + else: + self.type.append(HashType.RAW_SHA2_256) + self.type.append(HashType.RAW_SHA3_256) elif hash_len == 96: if not self.isSalted: self.type.append(HashType.RAW_SHA2_384)