initial commit

This commit is contained in:
m.zare
2026-04-10 18:25:21 +03:30
commit 77ca6c34a3
263 changed files with 34470 additions and 0 deletions

13
pkg/crypto/hash.go Normal file
View File

@@ -0,0 +1,13 @@
package crypto
import (
"crypto/sha256"
"encoding/hex"
"fmt"
)
func Sha256(identifier string) string {
hash := sha256.Sum256([]byte(identifier))
hashStr := hex.EncodeToString(hash[:])
return fmt.Sprintf("%s", hashStr)
}