V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
Pythonerxiaobai
V2EX  ›  Python

求教 Python des 加密问题

  •  
  •   Pythonerxiaobai · 2019-01-22 15:23:48 +08:00 · 1610 次点击
    这是一个创建于 1920 天前的主题,其中的信息可能已经有所发展或是发生改变。

    pyDes 和 Crypto.Cipher 里的 des 模块中 key_size 为 8,服务端给的密钥长度是 16 位的,这个要怎么处理啊?求大神指点

    2 条回复    2019-01-23 11:45:24 +08:00
    ysc3839
        1
    ysc3839  
       2019-01-22 16:38:35 +08:00 via Android
    什么服务端?给的密钥是怎样的?

    建议先看看这个 https://lug.ustc.edu.cn/wiki/doc/smart-questions 把问题描述清楚。
    Pythonerxiaobai
        2
    Pythonerxiaobai  
    OP
       2019-01-23 11:45:24 +08:00
    @ysc3839 什么 什么服务端?什么给的密钥是怎样的?
    建议先看看这个 https://blog.m157q.tw/posts/2017/12/21/how-to-answer-questions-in-a-helpful-way-zh-tw/ 把答案搞清楚
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4187 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 01:01 · PVG 09:01 · LAX 18:01 · JFK 21:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.