Skip to content

crypt

import "budget-tracker-api-v2/internal/utils/crypt"

Index

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

CheckPasswordHash will valid if hash matches a given plaintext password

func GenerateSaltedPassword

func GenerateSaltedPassword(plainPassword string) (saltedPass string, err error)

GenerateSaltedPassword will return a hashed password

Generated by gomarkdoc