def create (seed, hash=hashlib.sha512):
"""Create a new TOTP for the given secret seed and hash,
using the default 30 second time step period."""
return totp(stringToHex(seed), format='dec8', hash=hash)
评论列表
文章目录