c,python: Change the algorithm for hashing the master password to Argon2

This commit is contained in:
2021-11-14 09:59:51 +01:00
parent c869c79619
commit cc473f4c24
4 changed files with 21 additions and 10 deletions

View File

@ -8,7 +8,7 @@ typedef struct passgeny passgeny_t;
struct passgeny
{
uint8_t pg_master_hash[32]; /* SHA256 of the master password */
uint8_t pg_master_hash[128]; /* Hash of the master password */
char *pg_pattern; /* Password pattern */
double pg_last_bits_total; /* Total bits that were available for generating the last password */
double pg_last_bits_used; /* Bits consumed when calculating the last password */