Exscript.stdlib.crypt module¶
-
Exscript.stdlib.crypt.
otp
(*args, **kwargs)[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 (string) – A password.
- seed (string) – A username.
- seqs (int) – A sequence number, or a list of sequence numbers.
Return type: string
Returns: A hash, or a list of hashes.