(str string, salt string)
| 1292 | } |
| 1293 | |
| 1294 | func Sha1HashString(str string, salt string) string { |
| 1295 | h := sha1.New() |
| 1296 | h.Write([]byte(salt + str)) |
| 1297 | hashedKey := h.Sum(nil) |
| 1298 | return fmt.Sprintf("%x", hashedKey) |
| 1299 | } |
| 1300 | |
| 1301 | // KVPair represents a single KV pair to be used in InjectJSONProperties |
| 1302 | type KVPair struct { |
no test coverage detected