pdf文档 ItsDangerous Documentation (1.1.x) Release 1.1.0

178.96 KB 28 页 0 评论
语言
英语
格式
.pdf
评分
3
摘要
ItsDangerous Documentation (1.1.x) Release 1.1.0 Pallets Oct 20, 2022 CONTENTS 1 Installing 3 2 Example Use Cases 5 3 Table of Contents 7 3.1 Signing Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.2 Serialization Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.3 Exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.4 Signing With Timestamps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.5 URL Safe Serialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.6 JSON Web Signature (JWS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.7 Encoding Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.8 License . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.9 Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Python Module Index 21 Index 23 i ii ItsDangerous Documentation (1.1.x), Release 1.1.0 Sometimes you just want to send some data to untrusted environments. But how to do this safely? The trick involves signing. Given a key only you know, you can cryptographically sign your data and hand it over to someone else. When you get the data back you can easily ensure that nobody tampered with it. Granted, the receiver can decode the contents and look into the package, but they can not modify the contents unless they also have your secret key. So if you keep the key secret and complex, you will be fine. Internally ItsDangerous uses HMAC and SHA-512 for signing by default. The initial implementation was inspired by Django’s signing module. It also supports JSON Web Signatures (JWS). The library is BSD licensed. CONTENTS 1 ItsDangerous Documentation (1.1.x), Relea...
来源itsdangerous.palletsprojects.com
ItsDangerous Documentation (1.1.x)
Release 1.1.0 第2页
ItsDangerous Documentation (1.1.x)
Release 1.1.0 第3页
下载文档到本地,方便使用
共 28 页, 还有 5 页可预览, 继续阅读
文档评分
请文明评论,理性发言.