Pycrypto - 使用Crypto.Random生成密钥和初始化向量(Pycrypto - Using Crypto.Random to generate a secret key and an initialisation vector)
Crypto.Random可以用来安全地生成一个强密钥和一个初始化向量吗?
Can Crypto.Random be used to safely generate a strong secret key and an initialisation vector?
最满意答案
根据PyCryto文档 ,答案是肯定的:
from Crypto.PublicKey import RSA from Crypto import Random rng = Random.new().read RSAkey = RSA.generate(1024, rng)According to the PyCryto docs, the answer is yes:
from Crypto.PublicKey import RSA from Crypto import Random rng = Random.new().read RSAkey = RSA.generate(1024, rng)更多推荐
发布评论