package
0.0.9
Repository: https://github.com/chorus-tre/chorus-backend.git
Documentation: pkg.go.dev

# Functions

CreateTotpRecovery generates and returns num TOTP recovery code strings.
CreateTotpSecret generates a new time-based one-time password (compatible with google-authenticator) for the given user with the following properties: validity period: 30 seconds secret size: 20 bytes algorithm: HMAC-SHA1.
No description provided by the author
No description provided by the author
DecryptTotpRecoveryCodes decrypts a given array defined with encrypted recovery codes.
No description provided by the author
super mega secret obfuscation ;-).
No description provided by the author
No description provided by the author
No description provided by the author
VerifyTotp checks whether the provided totpCode is a valid TOTP.
VerifyTotpRecoveryCode checks whether a provided TOTP recovery code in a list of codes If there is a match the respective recovery code is returned.
No description provided by the author

# Structs

No description provided by the author