diff options
Diffstat (limited to 'go/vendor/github.com/stretchr/objx/security.go')
-rw-r--r-- | go/vendor/github.com/stretchr/objx/security.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/go/vendor/github.com/stretchr/objx/security.go b/go/vendor/github.com/stretchr/objx/security.go deleted file mode 100644 index 692be8e..0000000 --- a/go/vendor/github.com/stretchr/objx/security.go +++ /dev/null @@ -1,12 +0,0 @@ -package objx - -import ( - "crypto/sha1" - "encoding/hex" -) - -// HashWithKey hashes the specified string using the security key -func HashWithKey(data, key string) string { - d := sha1.Sum([]byte(data + ":" + key)) - return hex.EncodeToString(d[:]) -} |