MCPcopy
hub / github.com/django/django / sign

Method sign

django/core/signing.py:216–217  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

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))
218
219 def unsign(self, signed_value):
220 if self.sep not in signed_value:

Calls 1

signatureMethod · 0.95