Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
`TimestampSigner` not working as expected when I use a `-` as separator #62
To produce the error:
When I ran the above code multiple times in loop, I got following exceptions:
Here's what I think is going on.
A potential fix could be to check if the separator is part of the base64_urlsafe() charset and/or write that in the docs.
How to reproduce.
for i in xrange(100): s = TimestampSigner('secret-key',sep='-') mystr = s.sign('foo') try: s.unsign(mystr,max_age=200) except: raise time.sleep(1)
Example string foo-CmVi_g-pt8iji6JAw61H0EJm-bFJumhEZw (signature will be