diff options
Diffstat (limited to 'vendor/github.com/stretchr/testify/vendor/github.com/stretchr/objx/security.go')
-rw-r--r-- | vendor/github.com/stretchr/testify/vendor/github.com/stretchr/objx/security.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/vendor/github.com/stretchr/testify/vendor/github.com/stretchr/objx/security.go b/vendor/github.com/stretchr/testify/vendor/github.com/stretchr/objx/security.go deleted file mode 100644 index e052ff890..000000000 --- a/vendor/github.com/stretchr/testify/vendor/github.com/stretchr/objx/security.go +++ /dev/null @@ -1,17 +0,0 @@ -package objx - -import ( - "crypto/sha1" - "encoding/hex" -) - -// HashWithKey hashes the specified string using the security -// key. -func HashWithKey(data, key string) string { - hash := sha1.New() - _, err := hash.Write([]byte(data + ":" + key)) - if err != nil { - return "" - } - return hex.EncodeToString(hash.Sum(nil)) -} |