Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(0)  |  Derive(3)  |  Import(3)
hotp token class implementation

src/l/i/LinOTP-2.6.1.1/linotp/lib/tokens/emailtoken.py   LinOTP(Download)
import datetime
 
from linotp.lib.tokens.hmactoken import HmacTokenClass
from linotp.lib.config import getFromConfig
from linotp.lib.util import getParam
class EmailTokenClass(HmacTokenClass):
    """
    E-mail token (similar to SMS token)
    """
 

src/l/i/LinOTP-2.6.1.1/linotp/lib/tokens/totptoken.py   LinOTP(Download)
 
from linotp.lib.tokenclass import TokenClass
from linotp.lib.tokens.hmactoken import HmacTokenClass
 
keylen = {'sha1' : 20,
class TimeHmacTokenClass(HmacTokenClass):
 
    resyncDiffLimit = 3
 
    def __init__(self, aToken):

src/l/i/LinOTP-2.6.1.1/linotp/lib/tokens/smstoken.py   LinOTP(Download)
 
 
from linotp.lib.tokens.hmactoken import HmacTokenClass
 
import logging
class SmsTokenClass(HmacTokenClass):
    '''
    implementation of the sms token class
    '''
    def __init__(self, aToken):