utils

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MaxDepth = 32

Variables

This section is empty.

Functions

func ComparePasswordHash

func ComparePasswordHash(password string, hash string) (bool, error)

func GeneratePassword

func GeneratePassword() (string, error)

func GeneratePasswordHash

func GeneratePasswordHash(password string) (string, error)

func ReplaceMergeMap

func ReplaceMergeMap(dst, src map[string]interface{}) error

Types

type PasswordHashSet

type PasswordHashSet struct {
	Hash     string `json:"hash"`
	Password string `json:"password"`
}

func GeneratePasswordHashSet

func GeneratePasswordHashSet(secret *string) (*PasswordHashSet, error)

Jump to

Keyboard shortcuts

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