tupyy / totp

Simple implementation of TOTP algorithm for 2FA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple implementation of TOTP for 2FA in Go

This implementation uses SHA-1 as hash algorithm.

Build

go build -o totp main.go

Usage

./totp --secret-key some-secret-key

The secret key must be encoded in base32.

Credits

Based on this blog https://drewdevault.com/2022/10/18/TOTP-is-easy.html.

About

Simple implementation of TOTP algorithm for 2FA

License:MIT License


Languages

Language:Go 100.0%