MCPcopy
hub / github.com/django/django / signature

Method signature

django/core/signing.py:212–214  ·  view source on GitHub ↗
(self, value, key=None)

Source from the content-addressed store, hash-verified

210 )
211
212 def signature(self, value, key=None):
213 key = key or self.key
214 return base64_hmac(self.salt + "signer", value, key, algorithm=self.algorithm)
215
216 def sign(self, value):
217 return "%s%s%s" % (value, self.sep, self.signature(value))

Callers 10

signMethod · 0.95
unsignMethod · 0.95
test_signatureMethod · 0.95
test_custom_algorithmMethod · 0.95
signatureFunction · 0.80
innerFunction · 0.80
innerFunction · 0.80

Calls 1

base64_hmacFunction · 0.85

Tested by 7

test_signatureMethod · 0.76
test_custom_algorithmMethod · 0.76
innerFunction · 0.64
innerFunction · 0.64