【笔记】oathtool学习笔记

前言

The OATH Toolkit contains a shared library, command line tool and a PAM module that makes it possible to build one-time password authentication systems(Github

通过oathtool实现TOTP密码计算

下载Oathtool

1
brew install oathtool

通过Base32计算TOTP密码

<secret>:Base32编码后的密钥

1
oathtool --totp --base32 "<secret>"

完成

参考文献

少数派——契丹神童