百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

flask-session-cookie-manager

> 安全
开源

:cookie: Flask 会话 Cookie 解码器/编码器

773 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

:cookie: Flask 会话 Cookie 解码器/编码器

Flask Session Cookie 解码器/编码器

原作者: Wilson Sumanang 修复和改进作者: Alexandre ZANNI 从 saruberoz.GitHub.io 上导入

依赖项

  • Python 2 或 Python 3
  • itsdangerous
  • Flask

安装

包

BlackArch Linux

bash
pacman -S flask-session-cookie-manager{3,2}

Git

ArchLinux

无论是 python3 还是 python2:

bash
git clone https://github.com/noraj/flask-session-cookie-manager.git && cd flask-session-cookie-manager
makepkg -sic

其他发行版

使用包管理器找到您的路径,在虚拟环境中使用 pip 或使用 pyenv。 例如

bash
git clone https://github.com/noraj/flask-session-cookie-manager.git && cd flask-session-cookie-manager
python -m venv venv
source venv/bin/activate
python -m pip install .

使用方法

使用 flask_session_cookie_manager3.py 与 Python 3, 使用 flask_session_cookie_manager2.py 与 Python 2。

usage: flask_session_cookie_manager{2,3}.py [-h] {encode,decode} ...

Flask Session Cookie Decoder/Encoder

positional arguments:
  {encode,decode}  sub-command help
    encode         encode
    decode         decode

optional arguments:
  -h, --help       show this help message and exit

编码

usage: flask_session_cookie_manager{2,3}.py encode [-h] -s  -t 

optional arguments:
  -h, --help            show this help message and exit
  -s , --secret-key 
                        Secret key
  -t , --cookie-structure 
                        Session cookie structure

解码

usage: flask_session_cookie_manager{2,3}.py decode [-h] [-s ] -c 

optional arguments:
  -h, --help            show this help message and exit
  -s , --secret-key 
                        Secret key
  -c , --cookie-value 
                        Session cookie value

示例

编码

$ Python{2,3} flask_session_cookie_manager{2,3}.py encode -s '.{y]tR&sp&77RdO~u3@XAh#TalD@Oh~yOF_51H(QV

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythoncookiedecoderencoderflask

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类安全
定价开源

> 相关工具

O
OWASP ZAP
开源 Web 应用安全扫描器
O
owasp-wstg-tracker
Simple web app to track OWASP WSTG security testing progress
H
homebridge-mi-gateway-security
XiaoMi Gateway Security plugin for HomeBridge.