This implementation uses SHA-1 as hash algorithm.
go build -o totp main.go
./totp --secret-key some-secret-key
The secret key must be encoded in base32.
Based on this blog https://drewdevault.com/2022/10/18/TOTP-is-easy.html.
Simple implementation of TOTP algorithm for 2FA
This implementation uses SHA-1 as hash algorithm.
go build -o totp main.go
./totp --secret-key some-secret-key
The secret key must be encoded in base32.
Based on this blog https://drewdevault.com/2022/10/18/TOTP-is-easy.html.