Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fortis/go-steam-totp
Go package to generate Steam-style TOTP auth codes
https://github.com/fortis/go-steam-totp
2fa steam steam-trade-offers steam-trading totp two-factor
Last synced: 2 months ago
JSON representation
Go package to generate Steam-style TOTP auth codes
- Host: GitHub
- URL: https://github.com/fortis/go-steam-totp
- Owner: fortis
- License: mit
- Created: 2017-06-16T20:52:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-14T20:27:49.000Z (about 7 years ago)
- Last Synced: 2024-10-05T02:37:24.368Z (3 months ago)
- Topics: 2fa, steam, steam-trade-offers, steam-trading, totp, two-factor
- Language: Go
- Size: 8.79 KB
- Stars: 13
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Steam TOTP
[![Build Status](https://travis-ci.org/fortis/go-steam-totp.svg?branch=master)](https://travis-ci.org/fortis/go-steam-totp)
[![Coverage Status](https://coveralls.io/repos/github/fortis/go-steam-totp/badge.svg?branch=master)](https://coveralls.io/github/fortis/go-steam-totp?branch=master)
[![license](https://img.shields.io/npm/l/steam-totp.svg)](https://github.com/fortis/go-steam-totp/blob/master/LICENSE)This package generates Steam-style 5-digit alphanumeric two-factor authentication codes given a shared secret.
## Installation
$ go get github.com/fortis/go-steam-totp
## Usage
Generate 5-digit code to Log on Steam```go
package mainimport (
"log"
"github.com/fortis/go-steam-totp"
)func main() {
var sharedsecret = "cnOgv/KdpLoP6Nbh0GMkXkPXALQ="
code, _ := steam_totp.GenerateAuthCode(sharedsecret, time.Now())
log.Println(code)
}
```## Documentation
[Documentation](http://godoc.org/github.com/fortis/go-steam-totp) is hosted at GoDoc project.
## Acknowledgments
- To [DoctorMcKay](https://github.com/DoctorMcKay) for the great nodejs module [node-steam-totp](https://github.com/DoctorMcKay/node-steam-totp)## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details