Commit 2ef1c0c
Changed files (2)
pkg
cookie
pls
pkg/pls/hmac.go
@@ -1,12 +0,0 @@
-package pls
-
-import (
- "crypto/hmac"
- "crypto/sha256"
-)
-
-func GenerateHMAC256(key, value []byte) []byte {
- mac := hmac.New(sha256.New, key)
- mac.Write(value)
- return mac.Sum(nil)
-}