quzuu-api-test / utils /token_util.go
lifedebugger's picture
Deploy files from GitHub repository
d984631
Raw
History Blame Contribute Delete
172 Bytes
package utils
import (
"crypto/sha256"
"encoding/hex"
)
func HashToken(token string) string {
sum := sha256.Sum256([]byte(token))
return hex.EncodeToString(sum[:])
}