Not an issue per se, but I hope it can help folks that are in the same situation as me. I’m currently on a Mac without admin rights (so no Homebrew for me), and building oathtool is a bit messy. The Perl version probably works, but installing things from CPAN is also a bit tricky.
I’ve came across a wonderful 20-line TOTP implementation in Python, mintotp, and figured out I can just wrap it into a single file script: https://gist.github.com/notpushkin/7ac32ddf35a0c73bc6f181a1b5dffa4f
Now I can generate TOTP codes on my desktop again!
Not an issue per se, but I hope it can help folks that are in the same situation as me. I’m currently on a Mac without admin rights (so no Homebrew for me), and building oathtool is a bit messy. The Perl version probably works, but installing things from CPAN is also a bit tricky.
I’ve came across a wonderful 20-line TOTP implementation in Python, mintotp, and figured out I can just wrap it into a single file script: https://gist.github.com/notpushkin/7ac32ddf35a0c73bc6f181a1b5dffa4f
Now I can generate TOTP codes on my desktop again!