#25460: Inconsistent behaviour from TimestampSigner with two different 
separators
------------------------------+---------------------
     Reporter:  alexbarcelo   |      Owner:  nobody
         Type:  Bug           |     Status:  new
    Component:  Core (Other)  |    Version:  1.8
     Severity:  Normal        |   Keywords:  signing
 Triage Stage:  Unreviewed    |  Has patch:  0
Easy pickings:  0             |      UI/UX:  0
------------------------------+---------------------
 I haven't been able to make exhaustive test, bad I seem to have a
 consistent failure that I cannot explain.

 Break code:
 {{{
 signer = TimestampSigner(sep=":")
 signer.unsign("kapo99:1ZfASc:UeDD0RvkDeC7qHNrI9HettcfRCQ", max_age=9999)
 # Should be valid, but:
 signer = TimestampSigner(sep="/")
 signer.unsign("kapo99/1ZfASc/UeDD0RvkDeC7qHNrI9HettcfRCQ", max_age=9999)
 # Fails with BadSignature
 }}}

 The secret key of my installation is (yes, not very original as a
 development key):
 {{{
 SECRET_KEY="development_secret_key"
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25460>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/054.05a01813c5d0e50ffd1d79993bc188e9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to