Generate otp
1.6.0com.github.eendroroy to io.github.eendroroyAlgorithm[Braking change] Deprecated Digest (Use Algorithm)[Braking change] Renamed UnsupportedDigitsForProvisioningUri to UnsupportedOtpLengthForProvisioningUri[Braking change] Renamed UnsupportedDigestForProvisioningUri to UnsupportedAlgorithmForProvisioningUridigits to lengthconf to configuration in TOPT and HOTP constructorstime parameter to epochSeconds in TOPT.at(Long): Stringcount parameter to counter in HOPT.at(Long): StringTOTP.at(Long): StringTOTP.verify(String, Long, Long?, Long, Long): Long?[Braking change] Removed TOTP.verify(String, Long, Long, Date?, Date): Long?[Braking change] Removed TOTP.at(Date): String[Braking change] Removed Base32 and Base32String and merged all functionality in newly introduced SecretOTP.generateOtp(Int): StringHOTP(Base32String, Int, Digest)HOTP.at(Int): StringHOTP.verify(String, Int, Int): Int?HOTP.provisioningUri(String, Int): String?TOTP(Base32String, Int, Digest, Int, String)TOTP.verify(String, Int, Int, Date?, Date): Int?radix of OTP value, now it is possible to generate alphanumeric OTPprovisioningUri, now validates explicitly for Google Authenticator supportRFC4226 and RFC6238 complianceSHA256 and SHA512Deprecations
OTP.generateOtp(Int): String (use: OTP.generateOtp(Long): String)HOTP.at(Int): String (use: HOTP.at(Long): String)HOTP.verify(String, Int, Int): Int? (use: HOTP.verify(String, Long, Long): Long?)HOTP.provisioningUri(String, Int): String? (use: HOTP.provisioningUri(String, Long): String?)TOTP.verify(String, Int, Int, Date?, Date): Int? (use: TOTP.verify(String, Long, Long, Date?, Date): Long?)Base32 and Base32String classesHOTP and TOTP secrets are now Base32StringHOTPConfig and TOTPConfigDeprecations
HOTP(Base32String, Int, Digest) (use: HOTP(HOTPConfig))TOTP(Base32String, Int, Digest, Int, String) (use: HOTP(TOTPConfig))