Skip to content

ChristopherSchultz/java-totp

Repository files navigation

java-totp

An implementation of the Time-Based One-Time Password Algorithm described in RFC 6238.

You can use java-totp in your code easily to check a TOTP token for validity:

TimeBasedOneTimePassword totp = new TimeBasedOneTimePassword();
String seed = "3132333435363738393031323334353637383930";
String token = [read from user];
if(!totp.isValid(seed, token)) {
    // HCF
}

Building

Use Maven

mvn package

About

TOTP implementation in Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages