class TimestampSigner(key=None, sep=':', salt=None)
[source]
-
sign(value)
[source] -
Sign
value
and append current timestamp to it.
-
unsign(value, max_age=None)
[source] -
Checks if
value
was signed less thanmax_age
seconds ago, otherwise raisesSignatureExpired
. Themax_age
parameter can accept an integer or adatetime.timedelta
object.
Please login to continue.