create_password Method
Creates a Time-Based or HMAC-Based One Time Password.
Syntax
def create_password() -> None: ...
Remarks
This method creates either a Time-Based or HMAC-Based One Time Password. The password_algorithm property specifies which algorithm to use.
The following properties are applicable when calling on_create_password.
- password_algorithm
- secret
- counter (required for HMAC-Based One Time Password)
- time_step (applicable for Time-Based One Time Password)
Calling on_create_password populates the password property with the created password.
If secret is not specified before calling this method a random secret will be automatically generated.