feat: api key authentication (#291)

Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
Kyle Mendell
2025-03-11 19:16:42 +00:00
committed by GitHub
co-authored by Elias Schneider
parent 74ba8390f4
commit 62915d863a
58 changed files with 2172 additions and 190 deletions
+11
View File
@@ -0,0 +1,11 @@
package utils
import (
"crypto/sha256"
"encoding/hex"
)
func CreateSha256Hash(input string) string {
hash := sha256.Sum256([]byte(input))
return hex.EncodeToString(hash[:])
}