diff --git a/src/cryptography/master_pass.py b/src/cryptography/master_pass.py index 61d8f91..0ac4087 100644 --- a/src/cryptography/master_pass.py +++ b/src/cryptography/master_pass.py @@ -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)