| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 | Metadata-Version: 2.1Name: itsdangerousVersion: 2.2.0Summary: Safely pass data to untrusted environments and back.Maintainer-email: Pallets <contact@palletsprojects.com>Requires-Python: >=3.8Description-Content-Type: text/markdownClassifier: Development Status :: 5 - Production/StableClassifier: Intended Audience :: DevelopersClassifier: License :: OSI Approved :: BSD LicenseClassifier: Operating System :: OS IndependentClassifier: Programming Language :: PythonClassifier: Typing :: TypedProject-URL: Changes, https://itsdangerous.palletsprojects.com/changes/Project-URL: Chat, https://discord.gg/palletsProject-URL: Documentation, https://itsdangerous.palletsprojects.com/Project-URL: Donate, https://palletsprojects.com/donateProject-URL: Source, https://github.com/pallets/itsdangerous/# ItsDangerous... so better sign thisVarious helpers to pass data to untrusted environments and to get itback safe and sound. Data is cryptographically signed to ensure that atoken has not been tampered with.It's possible to customize how data is serialized. Data is compressed asneeded. A timestamp can be added and verified automatically whileloading a token.## A Simple ExampleHere's how you could generate a token for transmitting a user's id andname between web requests.```pythonfrom itsdangerous import URLSafeSerializerauth_s = URLSafeSerializer("secret key", "auth")token = auth_s.dumps({"id": 5, "name": "itsdangerous"})print(token)# eyJpZCI6NSwibmFtZSI6Iml0c2Rhbmdlcm91cyJ9.6YP6T0BaO67XP--9UzTrmurXSmgdata = auth_s.loads(token)print(data["name"])# itsdangerous```## DonateThe Pallets organization develops and supports ItsDangerous and otherpopular packages. In order to grow the community of contributors andusers, and allow the maintainers to devote more time to the projects,[please donate today][].[please donate today]: https://palletsprojects.com/donate
 |