推荐学习书目
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
GPU
V2EX  ›  Python

python AES 加密“16bytes long ” 错误求带

  •  
  •   GPU · May 26, 2014 · 2928 views
    This topic created in 4372 days ago, the information mentioned may be changed or developed.
    https://gist.github.com/03efe311598d88cbea11.git

    为什么就是不能显示代码?

    相关代码 就这些 。用了两个版本的pycrypto 都出这个错误 , 不明真相
    3 replies    2014-05-26 23:21:39 +08:00
    Sunyanzi
        1
    Sunyanzi  
       May 26, 2014
    错误写的很明确啊 ... 我怀疑是你的 self.aesKey 的赋值根本是错的吧 ... 打出来看看 ..?
    GPU
        2
    GPU  
    OP
       May 26, 2014
    @Sunyanzi 在旧版本的pycrypto 貌似可以正常运行 。之前编译过一个出来的
    GPU
        3
    GPU  
    OP
       May 26, 2014
    @Sunyanzi 因为程序不是我自己写的 。看了半天 知道了这个self.aesKey 是在数据库获取的值 。但是不知道该什么值才能通过这个用户名的验证
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   877 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 20:48 · PVG 04:48 · LAX 13:48 · JFK 16:48
    ♥ Do have faith in what you're doing.