https://github.com/eendroroy/kotp
Generate otp
https://github.com/eendroroy/kotp
hotp java-otp kotlin-otp otp rfc4226 rfc6238 totp
Last synced: 8 months ago
JSON representation
Generate otp
- Host: GitHub
- URL: https://github.com/eendroroy/kotp
- Owner: eendroroy
- License: mit
- Created: 2020-07-17T13:48:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-09T05:37:51.000Z (almost 2 years ago)
- Last Synced: 2025-03-22T01:18:25.523Z (about 1 year ago)
- Topics: hotp, java-otp, kotlin-otp, otp, rfc4226, rfc6238, totp
- Language: Kotlin
- Homepage: https://eendroroy.github.io/kotp
- Size: 234 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGESET.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# kotp
OTP generation and validation library.
* Implements [RFC4226](https://datatracker.ietf.org/doc/html/rfc4226)
and [RFC6238](https://datatracker.ietf.org/doc/html/rfc6238)
* Compatible with [Google Authenticator](https://github.com/google/google-authenticator).
* Supports Alphanumeric OTP generation.
* Supports `HmacSHA1`, `HmacSHA256` and `HmacSHA512` digests.
### Demo
[](https://asciinema.org/a/352223)
### Installation
*Maven*
```xml
io.github.eendroroy
kotp
2.0.2
```
*Gradle*
```groovy
dependencies {
implementation("io.github.eendroroy:kotp:2.0.2")
}
```
_Note:_ Check [releases](https://github.com/eendroroy/kotp/releases) for latest version.
### ChangeSet
[ChangeSet](CHANGESET.md)
### Usage
See [Wiki](https://github.com/eendroroy/kotp/wiki)
## Contributing
Bug reports and pull requests are welcome on GitHub at [kotp](https://github.com/eendroroy/kotp) repository. This
project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the
[Contributor Covenant](http://contributor-covenant.org) code of conduct.
1. Fork it ( https://github.com/eendroroy/kotp/fork )
1. Create your feature branch (`git checkout -b my-new-feature`)
1. Commit your changes (`git commit -am 'Add some feature'`)
1. Push to the branch (`git push origin my-new-feature`)
1. Create a new Pull Request
## Author
* **indrajit** - *Owner* - [eendroroy](https://github.com/eendroroy)
## License
The project is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).