2013-06-07から1日間の記事一覧

pycryptoでRSAの操作

# coding=utf-8 from Crypto.PublicKey import RSA from Crypto import Random random_func = Random.new().read rsa = RSA.generate(1024, random_func) # 秘密鍵作成 private_pem = rsa.exportKey(format='PEM', passphrase='hogehoge') with open('privat…