class documentation

class Signer:

Known subclasses: django.core.signing.TimestampSigner

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method sign Undocumented
Method sign​_object Return URL-safe, hmac signed base64 compressed JSON string.
Method signature Undocumented
Method unsign Undocumented
Method unsign​_object Undocumented
Instance Variable algorithm Undocumented
Instance Variable key Undocumented
Instance Variable salt Undocumented
Instance Variable sep Undocumented
def __init__(self, key=None, sep=':', salt=None, algorithm=None):

Undocumented

def sign(self, value):

Undocumented

def sign_object(self, obj, serializer=JSONSerializer, compress=False):

Return URL-safe, hmac signed base64 compressed JSON string.

If compress is True (not the default), check if compressing using zlib can save some space. Prepend a '.' to signify compression. This is included in the signature, to protect against zip bombs.

The serializer is expected to return a bytestring.

def signature(self, value):

Undocumented

def unsign(self, signed_value):

Undocumented

def unsign_object(self, signed_obj, serializer=JSONSerializer, **kwargs):

Undocumented

algorithm =

Undocumented

key =

Undocumented

salt =

Undocumented

sep =

Undocumented