Flask 会话簽章

使用所選算法和金鑰為消息產生簽章或鑑別標记,簽章参數需與驗證端一致。

輸入: 結構化 JSON結果: 文本

文本輸入

執行後查看結果

範例

Example keys and passwords are public test material.

The timestamp changes on each run. Recover the payload shown here; use this public key only for experiments.

Keep a dark theme and French locale

輸入

{"theme":"dark","locale":"fr-FR"}

Expected checks

Flask Session Decode recovers:
{"theme":"dark","locale":"fr-FR"}
金鑰
{"option":"UTF8","string":"public-demo-secret"}
盐值
{"option":"UTF8","string":"cookie-session"}
算法
sha1
Preserve a shopping cart with two quantities

輸入

{"cart":[{"sku":"BOOK-01","qty":2},{"sku":"MAP-02","qty":1}]}

Expected checks

Flask Session Decode recovers:
{"cart":[{"sku":"BOOK-01","qty":2},{"sku":"MAP-02","qty":1}]}
金鑰
{"option":"UTF8","string":"public-demo-secret"}
盐值
{"option":"UTF8","string":"cookie-session"}
算法
sha256
Keep false distinct from a missing permission

輸入

{"roles":["reader"],"can_publish":false}

Expected checks

Flask Session Decode recovers:
{"roles":["reader"],"can_publish":false}
金鑰
{"option":"UTF8","string":"public-demo-secret"}
盐值
{"option":"UTF8","string":"cookie-session"}
算法
sha256
Retain a zero-prefixed customer identifier

輸入

{"customer_id":"000042","return_to":"/orders?state=open"}

Expected checks

Flask Session Decode recovers:
{"customer_id":"000042","return_to":"/orders?state=open"}
金鑰
{"option":"UTF8","string":"public-demo-secret"}
盐值
{"option":"UTF8","string":"cookie-session"}
算法
sha1
Sign a nested feature setting with a custom salt

輸入

{"features":{"compact":true,"preview":null}}

Expected checks

Flask Session Decode recovers:
{"features":{"compact":true,"preview":null}}
金鑰
{"option":"UTF8","string":"public-demo-secret"}
盐值
{"option":"UTF8","string":"demo-preferences"}
算法
sha256

相关工具

加密 / 編碼

操作参考

查看原始技术文檔 (English)