MCPcopy Create free account
hub / github.com/SimHacker/micropolis / Base64URLDecode

Function Base64URLDecode

turbogears/micropolis/controllers.py:70–73  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

68
69
70def Base64URLDecode(data):
71 data = data.encode(u'ascii')
72 data += '=' * (4 - (len(data) % 4))
73 return base64.urlsafe_b64decode(data)
74
75
76def Base64URLEncode(data):

Callers 1

ParseSignedRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected