推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
hellowang
V2EX  ›  Python

flask 部署需要加密,有什么思路吗

  •  
  •   hellowang · May 9, 2019 · 5586 views
    This topic created in 2740 days ago, the information mentioned may be changed or developed.

    谢谢各位大佬指点

    17 replies  •  2019-05-10 09:47:45 +08:00
    cissoid
    cissoid
    May 9, 2019 via Android
    1
    1. pyc 部署,可以挡住小白
    2. 关键代码用 C 或者 Cython 写
    Qzier
    Qzier
    May 9, 2019 via iPhone
    2
    加密?你服务器没有密码吗?
    est
    est
    May 9, 2019❤️11
    3
    加什么密啊。程序跑起来之后把 src 目录直接删掉。
    assad
    assad
    May 9, 2019
    4
    @est 犀利啊
    CallMeReznov
    CallMeReznov
    May 9, 2019
    5
    @est #3 是个狼人
    nooper
    nooper
    May 9, 2019 via iPad
    6
    代码混淆
    Vegetable
    Vegetable
    May 9, 2019
    7
    3# 这操作我学到了呀哈哈
    之前想过一个思路,魔改解释器,将代码进行非对称加密.解释器自带解密功能,代码分发时候进行加密.
    保证解释器不被 hack 掉,那代码应该就是没办法看到的了.
    Cooky
    Cooky
    May 9, 2019 via Android
    8
    nuitka + upx
    dhq
    dhq
    May 9, 2019
    9
    @est 服务器极其稳定,从不重启
    huahuajun9527
    huahuajun9527
    May 9, 2019
    10
    编译成 so 文件
    est
    est
    May 9, 2019
    11
    @dhq 收费重启。23333

    其实我想设计一套无文件远程加载系统。
    chesterzzy
    chesterzzy
    May 9, 2019
    12
    函数编译成 pyd,其实就相当于 so。再加壳。
    vissssa
    vissssa
    May 9, 2019
    13
    我们是代码全部 cython 编译,不知道还能不能被破解
    qq316107934
    qq316107934
    May 9, 2019
    14
    @est #11 最终还是要映射到内存吧,block 一复制就出来了,防君子不防小人。
    est
    est
    May 9, 2019
    15
    @楼上 说得好有道理,不过你都会复制内存了。一般的加密能防住?

    要继续玩下去,比如启动的时候识别已知进程,你启动别的不认识进程有 root 权限直接退出。
    playniuniu
    playniuniu
    May 9, 2019 via iPhone
    16
    一般 pyinstaller 之类打个二进制包比较靠谱
    Nick2VIPUser
    Nick2VIPUser
    May 10, 2019
    17
    serverless 好了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1484 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 00:14 · PVG 08:14 · LAX 16:14 · JFK 19:14
    ♥ Do have faith in what you're doing.