Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mathisve/go-totp
totp experiment in golang
https://github.com/mathisve/go-totp
Last synced: about 2 months ago
JSON representation
totp experiment in golang
- Host: GitHub
- URL: https://github.com/mathisve/go-totp
- Owner: mathisve
- Created: 2024-01-05T00:24:27.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-02-21T20:03:14.000Z (10 months ago)
- Last Synced: 2024-02-21T21:25:10.288Z (10 months ago)
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-TOTP
totp (Timed One Time Password) experiment in golang### server
- GetSecret - returns a SecretID and Secret
- Challenge - Takes SecretID and TOTP, returns OK if TOTP is correct### client
1. Requests SecretID and Secret
2. Computes TOTP based on the Secret and Timeblock
3. Sends Challenge request to server with SecretID and TOTP## setup
protoc command:
```shell
protoc --go_out=. \
--go_opt=paths=source_relative \
--go-grpc_out=. \
--go-grpc_opt=paths=source_relative \
totp/totp.proto
```start:
```shell
go run server/server.go
go run client/client.go
```