16 Star 44 Fork 45

现任明教教主-乾颐堂 / qytang_Python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
2016.02.12 decrypto gpg file 392 Bytes
一键复制 编辑 原始数据 按行查看 历史
现任明教教主-乾颐堂 提交于 2016-02-12 23:31 . new file
#!/usr/bin/python3.4
# -*- coding=utf-8 -*-
import os
import gnupg
import gnupg
gpg = gnupg.GPG(gnupghome='/home/autouser/gpghome')
f = open('ise-CFG10-160212-2301_bak.tar.gpg', 'rb')
status = gpg.decrypt_file(f, passphrase='Cisc0123', output='ise-CFG10-160212-2301.tar')
print ('ok: ', status.ok)
print ('status: ', status.status)
print ('stderr: ', status.stderr)
f.close
Python
1
https://gitee.com/qytang/qytang_Python.git
git@gitee.com:qytang/qytang_Python.git
qytang
qytang_Python
qytang_Python
master

搜索帮助