secret Property
The Base32 encoded shared secret used when creating and validating a password.
Syntax
def get_secret() -> str: ... def set_secret(value: str) -> None: ...
secret = property(get_secret, set_secret)
Default Value
""
Remarks
This property specifies the Base32 encoded shared secret used when creating and validating a password. This should be set before calling create_password or validate_password.
If this is not set before calling create_password a random secret will be automatically generated. This functionality provides an easy way to create new secret values. The length of the secret is defined by SecretLength.