Skip to content

Instantly share code, notes, and snippets.

View lindenle's full-sized avatar
🎯
Focusing

Alex Linden Levy lindenle

🎯
Focusing
View GitHub Profile
@acoster
acoster / totp.py
Created November 20, 2012 22:45
TOTP module for Python.
#!/usr/bin/env python
"""Implementation of RFC 4226: HMAC-Based One-Time Password Algorithm (HTOP),
and RFC 6238: Time-Based One-Time Password Algorithm (TOTP).
"""
__author__ = 'acoster'
__copyright__ = 'Copyright 2012, Alexandre Coster'
import hmac