/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/stretchr/objx/security.go
12 строк
243 B
arigachnyy
fix go proto libraries
28 ноя 2023, 20:21
28 ноя 2023, 20:21
3432b6b
Код
Авторство
О чём код?
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[:]) }