Pycrypto - 活跃? [英] Pycrypto - active ??

查看:89
本文介绍了Pycrypto - 活跃?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道pycrypto是否有效。我一直在浏览

团体等等一些信息并找到了2003年的条目(最新)

关于我正在寻找的一些比特,特别是参考

对称编码(AES)和自动填充以及不提供iv到

设置方法即来自Crypto.Cipher导入AES的
来自Crypto.Hash的
导入SHA256

导入随机

import zlib

s = SHA256.new()

s.update(''secret'')

key = s.digest()

x = AES.new(key,AES.MODE_CBC)#应该是(关键,AES.MODE_CBC,iv)


iv应该根据文件(看起来也很老)应该是一个

随机数等于数据块的大小(在CBC或EBC中)。

有人知道如果不提供iv - 数据是否安全?


自动iv和自动填充将有助于这个项目很多但未知as

是否存在。我可能在这里错过了一个重点但是

- 所以请你纠正我的位置。


如果pyCrypto停滞不前或者看起来很遗憾不是更加认真地接受
,在列表中实现TLS,

SSL等方面有很好的说法,但很少支持这种可见代码或

docs。文档示例在代码中不存在,但是从ATTIC获取它们在cvs中显示它们不稳定,可能不安全而且不是现在代表代码的b $ b那是几年前的事情)

作为一个旁边我找到了一种方法来填充和删除填充解密是

非常简单,使用zlib.compress - >垫 - >加密

然后

解密 - > zlib.decompress和它只是你的数据减去填充。

解决方案

那么,Pycrypto的主页( http://www.amk.ca/python/code/crypto

于2005年12月被修改为las - 最近的imo。它在paramiko包中使用,例如

http:// www.lag.net/paramiko/ )最多(?)

在Python中使用ssh实现,所以我猜它是活跃的。


是的,主页说更新了,但我认为只是指pycrypto超过

。所有数据似乎都很旧。也许它处于它的水平




我只是想知道项目本身是否活跃且更近期的文档

存在以回答我提出的一些问题。


我当然希望得到一些答案。


< BLOCKQUOTE>" dirvine" < IR ********** @ gmail.com>写道:

我只是想知道项目本身是否活跃,而且还有更新的文档来回答我提出的一些问题。

我当然希望一些答案。




你提到了TLS / SSL,所以我希望你知道< http://trevp.com/tlslite>。

但是这并没有回答你关于Pycrypto的直接问题。


Does anyone know if pycrypto is active at all. I have been browsing
groups etc. for some info and have found entries from 2003 (latest)
regarding some bits I was looking for in particular reference to
symmetrical encoding (AES) and auto padding and supply or not of iv to
set up method i.e

from Crypto.Cipher import AES
from Crypto.Hash import SHA256
import random
import zlib
s = SHA256.new()
s.update(''secret'')
key = s.digest()
x = AES.new(key, AES.MODE_CBC) # should be (key,AES.MODE_CBC,iv)

iv should according to docs (which also look very old) should be a
random number equal to the size of data blocks (in CBC or EBC). Does
anyone know if by not supplying iv - is the data secure or not ??

Auto iv and auto padding would help this project a lot but unknown as
to whether they exist. I may be missing an important point here though
- so correct me where you will.

It would appear to be a great shame if pyCrypto has stalled or not
taken on board more seriously, there''s great talk of implementing TLS,
SSL etc. in the lists but little support of this visible in code or
docs. The docs examples don''t exist in code but getting them from ATTIC
in cvs shows they are not stable, possibly not secure and not
representative of the code now (and that''s a couple of years ago)
as an aside I have found a way to pad and remove padding at decrypt is
quite simple, use zlib.compress -> pad -> encrypt
then
decrypt -> zlib.decompress and its just your data minus padding.

解决方案

Well, the homepage of Pycrypto (http://www.amk.ca/python/code/crypto)
was modified las in December 2005 - quite recent imo. It is used e.g.
in the paramiko package (http://www.lag.net/paramiko/) for the most(?)
used ssh implementation in Python, so my guess it is active.


Yes the homepage says updated, but I think that refers to more than
just pycrypto. The data etc. all seems old. Perhaps it''s at it''s level
?

I just wonder if the project itself is active and more recent docs
exist to answer some of the questions I have posed.

I certainly hope theres some answers.


"dirvine" <ir**********@gmail.com> writes:

I just wonder if the project itself is active and more recent docs
exist to answer some of the questions I have posed.

I certainly hope theres some answers.



You mentioned TLS/SSL, so I hope you do know about <http://trevp.com/tlslite>.
But that doesn''t answer your immediate question about Pycrypto.


这篇关于Pycrypto - 活跃?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆