MCPcopy Index your code
hub / github.com/ContentSquare/chproxy / calcCredentialHash

Function calcCredentialHash

utils.go:301–305  ·  view source on GitHub ↗
(user string, pwd string)

Source from the content-addressed store, hash-verified

299 return h.Sum32(), nil
300}
301func calcCredentialHash(user string, pwd string) (uint32, error) {
302 h := fnv.New32a()
303 _, err := h.Write([]byte(user + pwd))
304 return h.Sum32(), err
305}
306
307// Function to read the request body and return it as a byte slice.
308// It also restores the req.Body to be used again.

Callers 2

newCacheKeyFunction · 0.85
TestServeFunction · 0.85

Calls 1

WriteMethod · 0.45

Tested by 1

TestServeFunction · 0.68