Codebase list python-itsdangerous / 7935063
Merge branch 'master' of https://github.com/mitsuhiko/itsdangerous into debian/unstable Simon Fondrie-Teitler 9 years ago
2 changed file(s) with 6 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
55 A module that implements various functions to deal with untrusted
66 sources. Mainly useful for web applications.
77
8 :copyright: (c) 2011 by Armin Ronacher and the Django Software Foundation.
8 :copyright: (c) 2014 by Armin Ronacher and the Django Software Foundation.
99 :license: BSD, see LICENSE for more details.
1010 """
1111
354354 def verify_signature(self, value, sig):
355355 """Verifies the signature for the given value."""
356356 key = self.derive_key()
357 sig = base64_decode(sig)
357 try:
358 sig = base64_decode(sig)
359 except Exception:
360 return False
358361 return self.algorithm.verify_signature(key, value, sig)
359362
360363 def unsign(self, signed_value):
77 name='itsdangerous',
88 author='Armin Ronacher',
99 author_email='armin.ronacher@active-4.com',
10 version='0.23',
10 version='0.24',
1111 url='http://github.com/mitsuhiko/itsdangerous',
1212 py_modules=['itsdangerous'],
1313 description='Various helpers to pass trusted data to '