3 ms·
> I even have a 6-line Python function. In case, anyone is curious what that might look like, I have a 30-line Python code here (TOTP generation only, no verif
by susam 6y ago
> I even have a 6-line Python function.
In case, anyone is curious what that might look like, I have a 30-line Python code here (TOTP generation only, no verification): https://github.com/susam/mintotp https://github.com/susam/mintotp. Indeed the core function (the HOTP function) contains only 6 lines, thanks to Python's extensive standard library.