https://github.com/webklex/2fam
Generate a 2fa code for a given secret.
https://github.com/webklex/2fam
Last synced: 9 months ago
JSON representation
Generate a 2fa code for a given secret.
- Host: GitHub
- URL: https://github.com/webklex/2fam
- Owner: Webklex
- License: mit
- Created: 2022-09-01T21:32:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-01T21:35:06.000Z (almost 4 years ago)
- Last Synced: 2025-01-30T19:55:56.812Z (over 1 year ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 2FA code generator
Generate a 2fa code for a given secret.
```bash
go install github.com/webklex/2fam
```
## Usage
```bash
Usage of 2fam:
-secret string Secret / Key code to be used for calculating the 2fa challenge answer
-utc Calculate code based on UTC time
-version Show version and exit
```
Example:
```bash
go run main.go -secret x53stf45ddirxafpnbpmkhuge2pe2g3f
```
## Build
```bash
git clone https://github.com/webklex/2fam
cd 2fam
go build
```
..or:
```bash
git clone https://github.com/webklex/2fam
cd 2fam
./build.sh
```
## Security
If you discover any security related issues, please email github@webklex.com instead of using the issue tracker.
## Credits
- [Webklex][link-author]
- [tilaklodha/google-authenticator](https://github.com/tilaklodha/google-authenticator)
- [All Contributors][link-contributors]
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
[link-author]: https://github.com/webklex
[link-contributors]: https://github.com/webklex/2fam/graphs/contributors