MCPcopy
hub / github.com/ticarpi/jwt_tool / buildHead

Function buildHead

jwt_tool.py:290–294  ·  view source on GitHub ↗
(alg, headDict)

Source from the content-addressed store, hash-verified

288 return logID
289
290def buildHead(alg, headDict):
291 newHead = headDict
292 newHead["alg"] = alg
293 newHead = base64.urlsafe_b64encode(json.dumps(newHead,separators=(",",":")).encode()).decode('UTF-8').strip("=")
294 return newHead
295
296def checkNullSig(contents):
297 jwtNull = contents.decode()+"."

Callers 2

checkPsySigFunction · 0.85
checkAlgNoneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected