1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-26 01:50:10 +00:00

Add new category HASH_CATEGORY_PRIVATE_KEY

This commit is contained in:
Jens Steube 2020-07-30 12:25:46 +02:00
parent cec6051d74
commit 6cec2664bc
2 changed files with 3 additions and 0 deletions

View File

@ -2627,6 +2627,7 @@ typedef enum hash_category
HASH_CATEGORY_OTP = 17, HASH_CATEGORY_OTP = 17,
HASH_CATEGORY_PLAIN = 18, HASH_CATEGORY_PLAIN = 18,
HASH_CATEGORY_FRAMEWORK = 19, HASH_CATEGORY_FRAMEWORK = 19,
HASH_CATEGORY_PRIVATE_KEY = 20,
} hash_category_t; } hash_category_t;

View File

@ -100,6 +100,7 @@ static const char *HASH_CATEGORY_PASSWORD_MANAGER_STR = "Password Managers
static const char *HASH_CATEGORY_OTP_STR = "One-Time Passwords"; static const char *HASH_CATEGORY_OTP_STR = "One-Time Passwords";
static const char *HASH_CATEGORY_PLAIN_STR = "Plaintext"; static const char *HASH_CATEGORY_PLAIN_STR = "Plaintext";
static const char *HASH_CATEGORY_FRAMEWORK_STR = "Framework"; static const char *HASH_CATEGORY_FRAMEWORK_STR = "Framework";
static const char *HASH_CATEGORY_PRIVATE_KEY_STR = "Private Key";
int sort_by_string_sized (const void *p1, const void *p2) int sort_by_string_sized (const void *p1, const void *p2)
{ {
@ -950,6 +951,7 @@ const char *strhashcategory (const u32 hash_category)
case HASH_CATEGORY_OTP: return HASH_CATEGORY_OTP_STR; case HASH_CATEGORY_OTP: return HASH_CATEGORY_OTP_STR;
case HASH_CATEGORY_PLAIN: return HASH_CATEGORY_PLAIN_STR; case HASH_CATEGORY_PLAIN: return HASH_CATEGORY_PLAIN_STR;
case HASH_CATEGORY_FRAMEWORK: return HASH_CATEGORY_FRAMEWORK_STR; case HASH_CATEGORY_FRAMEWORK: return HASH_CATEGORY_FRAMEWORK_STR;
case HASH_CATEGORY_PRIVATE_KEY: return HASH_CATEGORY_PRIVATE_KEY_STR;
} }
return NULL; return NULL;