Skip to content

Instantly share code, notes, and snippets.

View rsaikali's full-sized avatar
🏠
Working from home

Roland Saïkali rsaikali

🏠
Working from home
View GitHub Profile
@MineRobber9000
MineRobber9000 / 2fa
Created April 3, 2020 03:45
2-factor authentication terminal app in Python
#!/usr/bin/env python
import os, os.path, stat, sys, base64
# TOTP lib inlined
import time, hmac, base64, hashlib, struct
def pack_counter(t):
return struct.pack(">Q", t)