c,python: Change the algorithm for hashing the master password to Argon2
This commit is contained in:
@ -3,7 +3,6 @@
|
||||
#
|
||||
import argon2
|
||||
import argparse
|
||||
import hashlib
|
||||
import re
|
||||
|
||||
from . import bhash, phogen
|
||||
@ -33,7 +32,7 @@ class PassgenyInvalidPattern(Exception):
|
||||
|
||||
class Passgeny:
|
||||
def __init__(self, master_password):
|
||||
self.master_password = hashlib.sha256(master_password.encode()).digest()
|
||||
self.master_password = self.__argon2_hash(master_password.encode())
|
||||
self.pattern = PASSGENY_DEFAULT_PATTERN
|
||||
|
||||
def generate(self, domain, user, *tokens):
|
||||
|
||||
Reference in New Issue
Block a user