key Property
Provides an encryption key for the vault.
Syntax
def get_key() -> bytes: ... def set_key(value: bytes) -> None: ...
key = property(get_key, set_key)
Remarks
Use this property to provide the 'master' key for the vault file. This property can be assigned from the on_key_needed event handler.
The content of this property is automatically generated when a non-empty password is assigned to the password property. This is because the vault fileare always encrypted with a cryptographically strong key, and if the user decides to use a password, it is converted to such key using a secure PBKDF function first.