A TOTP implementation
Here’s a TOTP (RFC 6238) implementation I submitted to a library. The PR was rejected because the maintainer considered it out of scope, but the implementation is fine.
I’ll be deleting the branch, but I figured I’d might as well store it here for posterity.
import base64 …