Documentation ¶
Index ¶
- Variables
- func CheckPasswordHash(password, hash string) bool
- func ConvertToUpperCase(input string) string
- func DecryptSecret(encryptedSecret string, key []byte) ([]byte, error)
- func EncryptSecret(secret, key []byte) (string, error)
- func GenerateOTP(digits int8) string
- func GetEnvFilePath(envFile string) (string, error)
- func HashPassword(password string, cost int) (string, error)
- func MakeSQLPlaceholders(n uint) []string
- func StringPtr(str string) *string
- func ToAESKey(key string) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OSGetwd = os.Getwd OSStat = os.Stat )
Functions ¶
func CheckPasswordHash ¶
func ConvertToUpperCase ¶
func DecryptSecret ¶
DecryptSecret decrypts the encrypted TOTP secret.
func EncryptSecret ¶
EncryptSecret encrypts the TOTP secret using AES-256.
func GenerateOTP ¶
func GetEnvFilePath ¶
func MakeSQLPlaceholders ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.