def make_totp(secret, skew=0, timestamp=None):
 timestamp = (timestamp or time.time())
 counter = (timestamp // PERIOD)
 return make_hotp(secret, (counter - skew))

def make_totp ( secret , skew = 0 , timestamp = None ) : timestamp = ( timestamp or time . time ( ) ) counter = ( timestamp // PERIOD ) return make_hotp ( secret , ( counter - skew ) )
generate an rfc-6238 time-based one time password .