totp

command module
v0.0.0-...-83ebf3d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 5 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL