Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeToken ¶
DecodeToken will decode the root token returned by the Vault API The algorithm was initially used in the generate root command
func EncodeToken ¶
EncodeToken gets a token and an OTP and encodes the token. The OTP must have the same length as the token.
func GenerateOTP ¶
GenerateOTP generates a random token and encodes it as a Base64 or as a Base62 encoded string. Returns 0 if the generation completed without any error, 2 otherwise, along with the error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.