linotp.tokens.tagespassworttoken module

This file contains the dynamic tagespasswort token implementation: - TagespasswortTokenClass (DPW)

class linotp.tokens.tagespassworttoken.TagespasswortTokenClass(aToken)[source]

Bases: linotp.tokens.base.TokenClass

The Tagespasswort is a one time password that is calculated based on the day input.

  • the initial seed is appended with the day/month/year
  • some md5 and truncation will produce an 6 digits password
  • via getotp the set of next day passwords could be retrieved
checkOtp(anOtpVal, counter, window, options=None)[source]
classmethod getClassInfo(key=None, ret='all')[source]

getClassInfo - returns a subtree of the token definition

  • key (string) – subsection identifier
  • ret (user defined) – default return value, if nothing is found

subsection if key exists or user defined

Return type:


classmethod getClassPrefix()[source]
classmethod getClassType()[source]
get_multi_otp(count=0, epoch_start=0, epoch_end=0, curTime=None)[source]

This returns a dictionary of multiple future OTP values of the Tagespasswort token

count - how many otp values should be returned epoch_start - time based tokens: start when epoch_end - time based tokens: stop when
True/False error text OTP dictionary
class linotp.tokens.tagespassworttoken.dpwOtp(secObj, digits=6)[source]

using a context manager pattern to make sure that the secret is finally removed at the ending