MCPcopy
hub / github.com/postmanlabs/httpbin / H

Function H

httpbin/helpers.py:270–276  ·  view source on GitHub ↗
(data, algorithm)

Source from the content-addressed store, hash-verified

268# qop is a quality of protection
269
270def H(data, algorithm):
271 if algorithm == 'SHA-256':
272 return sha256(data).hexdigest()
273 elif algorithm == 'SHA-512':
274 return sha512(data).hexdigest()
275 else:
276 return md5(data).hexdigest()
277
278
279def HA1(realm, username, password, algorithm):

Callers 4

HA1Function · 0.85
HA2Function · 0.85
responseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected