Generate otp
1.6.0
com.github.eendroroy
to io.github.eendroroy
Algorithm
[Braking change]
Deprecated Digest
(Use Algorithm
)[Braking change]
Renamed UnsupportedDigitsForProvisioningUri
to UnsupportedOtpLengthForProvisioningUri
[Braking change]
Renamed UnsupportedDigestForProvisioningUri
to UnsupportedAlgorithmForProvisioningUri
digits
to length
conf
to configuration
in TOPT
and HOTP
constructorstime
parameter to epochSeconds
in TOPT.at(Long): String
count
parameter to counter
in HOPT.at(Long): String
TOTP.at(Long): String
TOTP.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 Secret
OTP.generateOtp(Int): String
HOTP(Base32String, Int, Digest)
HOTP.at(Int): String
HOTP.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 SHA512
Deprecations
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 Base32String
HOTPConfig
and TOTPConfig
Deprecations
HOTP(Base32String, Int, Digest)
(use: HOTP(HOTPConfig)
)TOTP(Base32String, Int, Digest, Int, String)
(use: HOTP(TOTPConfig)
)