All Projects → pallets → Itsdangerous

pallets / Itsdangerous

Licence: bsd-3-clause
Safely pass trusted data to untrusted environments and back.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Itsdangerous

Autocser
AutoCSer is a high-performance RPC framework. AutoCSer 是一个以高效率为目标向导的整体开发框架。主要包括 TCP 接口服务框架、TCP 函数服务框架、远程表达式链组件、前后端一体 WEB 视图框架、ORM 内存索引缓存框架、日志流内存数据库缓存组件、消息队列组件、二进制 / JSON / XML 数据序列化 等一系列无缝集成的高性能组件。
Stars: ✭ 140 (-94.06%)
Mutual labels:  serialization
Practical Cryptography For Developers Book
Practical Cryptography for Developers: Hashes, MAC, Key Derivation, DHKE, Symmetric and Asymmetric Ciphers, Public Key Cryptosystems, RSA, Elliptic Curves, ECC, secp256k1, ECDH, ECIES, Digital Signatures, ECDSA, EdDSA
Stars: ✭ 2,400 (+1.78%)
Mutual labels:  hmac
Jssha
A JavaScript/TypeScript implementation of the complete Secure Hash Standard (SHA) family (SHA-1, SHA-224/256/384/512, SHA3-224/256/384/512, SHAKE128/256, cSHAKE128/256, and KMAC128/256) with HMAC.
Stars: ✭ 2,089 (-11.41%)
Mutual labels:  hmac
Xmlutil
XML Serialization library for Kotlin
Stars: ✭ 143 (-93.94%)
Mutual labels:  serialization
Cachew
Transparent and persistent cache/serialization powered by type hints
Stars: ✭ 155 (-93.43%)
Mutual labels:  serialization
Crypto Async
Fast, reliable cipher, hash and hmac methods executed in Node's threadpool for multi-core throughput.
Stars: ✭ 161 (-93.17%)
Mutual labels:  hmac
Noproto
Flexible, Fast & Compact Serialization with RPC
Stars: ✭ 138 (-94.15%)
Mutual labels:  serialization
Gulpio
Binary storage format for deep learning on videos.
Stars: ✭ 178 (-92.45%)
Mutual labels:  serialization
Orjson
Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy
Stars: ✭ 2,595 (+10.05%)
Mutual labels:  serialization
Aspjson
A fast classic ASP JSON parser and encoder for easy JSON manipulation to work with the new JavaScript MV* libraries and frameworks.
Stars: ✭ 165 (-93%)
Mutual labels:  serialization
Jsona
Data formatter that creates simplified objects from JSON or stored reduxObject, creates JSON from the same simplified objects (in according with JSON API specification)
Stars: ✭ 144 (-93.89%)
Mutual labels:  serialization
Kdl
kat's document language
Stars: ✭ 149 (-93.68%)
Mutual labels:  serialization
Hprose Php
Hprose is a cross-language RPC. This project is Hprose 3.0 for PHP
Stars: ✭ 1,952 (-17.22%)
Mutual labels:  serialization
Rttr
C++ Reflection Library
Stars: ✭ 2,031 (-13.87%)
Mutual labels:  serialization
Qxorm
QxOrm library - C++ Qt ORM (Object Relational Mapping) and ODM (Object Document Mapper) library - Official repository
Stars: ✭ 176 (-92.54%)
Mutual labels:  serialization
Magic enum
Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code
Stars: ✭ 2,340 (-0.76%)
Mutual labels:  serialization
Netstack
Lightweight toolset for creating concurrent networking systems for multiplayer games
Stars: ✭ 157 (-93.34%)
Mutual labels:  serialization
Jsons
🐍 A Python lib for (de)serializing Python objects to/from JSON
Stars: ✭ 178 (-92.45%)
Mutual labels:  serialization
Kaml
YAML support for kotlinx.serialization
Stars: ✭ 178 (-92.45%)
Mutual labels:  serialization
Persistentstorageserializable
Swift library that makes easier to serialize the user's preferences (app's settings) with system User Defaults or Property List file on disk.
Stars: ✭ 162 (-93.13%)
Mutual labels:  serialization

ItsDangerous

... so better sign this

Various helpers to pass data to untrusted environments and to get it back safe and sound. Data is cryptographically signed to ensure that a token has not been tampered with.

It's possible to customize how data is serialized. Data is compressed as needed. A timestamp can be added and verified automatically while loading a token.

Installing

Install and update using pip:

pip install -U itsdangerous

A Simple Example

Here's how you could generate a token for transmitting a user's id and name between web requests.

from itsdangerous import URLSafeSerializer
auth_s = URLSafeSerializer("secret key", "auth")
token = auth_s.dumps({"id": 5, "name": "itsdangerous"})

print(token)
# eyJpZCI6NSwibmFtZSI6Iml0c2Rhbmdlcm91cyJ9.6YP6T0BaO67XP--9UzTrmurXSmg

data = auth_s.loads(token)
print(data["name"])
# itsdangerous

Donate

The Pallets organization develops and supports ItsDangerous and other popular packages. In order to grow the community of contributors and users, and allow the maintainers to devote more time to the projects, please donate today.

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].