Added func to hash master pass with known hasg
This commit is contained in:
parent
3cb9c74bac
commit
79ed20bbf7
@ -8,3 +8,7 @@ def encrypt_master_pass(passwd: str) -> tuple[bytes, bytes]:
|
||||
salt = bcrypt.gensalt()
|
||||
hashed = bcrypt.hashpw(passwd.encode("utf-8"), salt)
|
||||
return (hashed, salt)
|
||||
|
||||
|
||||
def encrypt_master_pass_known_host(passwd: str, salt: bytes) -> bytes:
|
||||
return bcrypt.hashpw(passwd.encode("utf-8"), salt)
|
||||
|
Reference in New Issue
Block a user