linotp.lib.HMAC module

HMAC-OTP (RFC 4226)

class linotp.lib.HMAC.HmacOtp(secObj=None, counter: int = 0, digits: int = 6, hashfunc=<built-in function openssl_sha1>)

Bases: object

checkOtp(anOtpVal, window, symetric=False)
generate(counter: Optional[int] = None, inc_counter=True, key=None)
hmac(counter: Optional[int] = None, key=None)
truncate(digest)