auth

package
v0.0.0-...-72a65b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePassword

func ComparePassword(plainTextPassword string, encryptedPassword string) bool

ComparePassword compares a plain text password with an encrypted password, returning true if they match

func HashAndSalt

func HashAndSalt(plainTextPassword string) string

HashAndSalt takes in a plan text password and returns the hashed and salted value

func ValidateMFA

func ValidateMFA(userSuppliedCode string, secret string) bool

Types

type NewTOTPOutput

type NewTOTPOutput struct {
	ImageBytes []byte
	Secret     string
}

func GenerateMFA

func GenerateMFA(issuer string, username string) NewTOTPOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL