utils

package
v0.0.0-...-a58f080 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePasswords

func ComparePasswords(hashedPwd []byte, plainPwd []byte) bool

func HashAndSalt

func HashAndSalt(pwd []byte) ([]byte, error)

func RollbackTx

func RollbackTx(tx *ent.Tx, err error) error

RollbackTx rolls back the transaction and returns the error

func SaltAndVerifyPassword

func SaltAndVerifyPassword(s string) (pw []byte, err error)

func SanitizePhone

func SanitizePhone(phone string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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