add project kontor-api-echo

This commit is contained in:
2026-01-03 02:53:50 +01:00
parent fe919eaa35
commit 0392ac49fb
33 changed files with 949 additions and 26 deletions
+8
View File
@@ -0,0 +1,8 @@
package utils
import "golang.org/x/crypto/bcrypt"
func ComparePassword(hashedPassword, password string) bool {
err := bcrypt.CompareHashAndPassword([]byte(hashedPassword), []byte(password))
return err == nil
}