Index
Modules:
nauthy
.
API symbols
`$`:
nauthy: `$`(hotp: Hotp): string
nauthy: `$`(totp: Totp): string
nauthy: `$`(u: Uri): string
Algorithm:
nauthy: Algorithm
at:
nauthy: at(hotp: Hotp; counter: SomeInteger): string
nauthy: at(totp: Totp; utime: EpochSecond): string
buildUri:
nauthy: buildUri(hotp: Hotp): string
nauthy: buildUri(totp: Totp): string
Bytes:
nauthy: Bytes
EpochSecond:
nauthy: EpochSecond
getIssuer:
nauthy: getIssuer(uri: Uri): string
getName:
nauthy: getName(uri: Uri): string
HashFunc:
nauthy: HashFunc
Hotp:
nauthy: Hotp
HotpT:
OtpType.HotpT
initHotp:
nauthy: initHotp(key: string | Bytes; b32Decode: bool = false; length: OtpValueLen = 6; hashFunc: HashFunc = sha1Hash): Hotp
initTotp:
nauthy: initTotp(key: string | Bytes; b32Decode: bool = true; length: OtpValueLen = 6; interval: TimeInterval = 30; hashFunc: HashFunc = sha1Hash; t0: EpochSecond = 0): Totp
MD5:
Algorithm.MD5
md5Hash:
nauthy: md5Hash
newUri:
nauthy: newUri(issuer: string; accountname: string): Uri
now:
nauthy: now(totp: Totp): string
Otp:
nauthy: Otp
otpFromUri:
nauthy: otpFromUri(uri: string): Otp
OtpType:
nauthy: OtpType
OtpValueLen:
nauthy: OtpValueLen
randomBase32:
nauthy: randomBase32(): string
SHA1:
Algorithm.SHA1
sha1Hash:
nauthy: sha1Hash
SHA256:
Algorithm.SHA256
sha256Hash:
nauthy: sha256Hash
SHA512:
Algorithm.SHA512
sha512Hash:
nauthy: sha512Hash
TimeInterval:
nauthy: TimeInterval
Totp:
nauthy: Totp
TotpT:
OtpType.TotpT
Uri:
nauthy: Uri
verify:
nauthy: verify(hotp: Hotp; value: string; counter: SomeInteger): bool
nauthy: verify(totp: Totp; value: string; now: EpochSecond = currentTime()): bool