OTP generation and validation library.
- Implements RFC4226 and RFC6238
- Compatible with Google Authenticator.
- Supports Alphanumeric OTP generation.
- Supports
HmacSHA1
,HmacSHA256
andHmacSHA512
digests.
Maven
<dependency>
<groupId>io.github.eendroroy</groupId>
<artifactId>kotp</artifactId>
<version>2.0.2</version>
</dependency>
Gradle
dependencies {
implementation("io.github.eendroroy:kotp:2.0.2")
}
Note: Check releases for latest version.
See Wiki
Bug reports and pull requests are welcome on GitHub at kotp repository. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
- Fork it ( https://github.com/eendroroy/kotp/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- indrajit - Owner - eendroroy
The project is available as open source under the terms of the MIT License.