Exscript.util.crypt module¶
Encryption related utilities.
-
Exscript.util.crypt.
otp
(password, seed, sequence)[source]¶ Calculates a one-time password hash using the given password, seed, and sequence number and returns it. Uses the MD4/sixword algorithm as supported by TACACS+ servers.
Parameters: - password (str) – A password.
- seed (str) – A cryptographic seed.
- sequence (int) – A sequence number.
Return type: string
Returns: A hash.