utils

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

CheckPasswordHash compares a plain password with a bcrypt hash.

func HashPassword

func HashPassword(password string) (string, error)

HashPassword hashes a plain password using bcrypt with cost 14.

func IsEmail

func IsEmail(email string) bool

IsEmail returns true if the string is a valid email address.

Types

This section is empty.

Jump to

Keyboard shortcuts

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