推荐学习书目
› 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 · 5494 views
    This topic created in 2711 days ago, the information mentioned may be changed or developed.

    谢谢各位大佬指点

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

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

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