There are some modules in the heart of Django which is useful for signing and encryption

There are three components here, separated by a ‘:’. The first component is a URL safe base64 encoded JSON of the object passed to dumps(). The second component is a base6 encoded timestamp. The third component is a base64 encoded HMAC/SHA1 hash of “$first_component:$second_component”

We can use Signer or TimestampSigner class as well.

class as well

There are three components here, separated by a ‘:’. The first component is a real value passed to sign(). The second component is a base6 encoded timestamp and the third one is base64 HMAC of the value.

--

--

Ehsan Ahmadi

Ehsan Ahmadi

I am a Django back-end developer and passionate about learning and using new technologies and architectures.