python pycparser 路径存储

知识共享许可协议 版权声明:署名,允许他人基于本文进行创作,且必须基于与原先许可协议相同的许可协议分发本文 (Creative Commons

Microsoft Windows [版本 10.0.17134.829]
(c) 2018 Microsoft Corporation。保留所有权利。

C:\WINDOWS\system32>e:

E:\>cd E:\360downloads

E:\360downloads>openssl genrsa -out Key.pem -f4 2048
Generating RSA private key, 2048 bit long modulus
.........................+++
.............+++
e is 65537 (0x010001)

E:\360downloads>penssl rsa -in Key.pem -pubout -out Liu_pub.pem
'penssl' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

E:\360downloads>openssl rsa -in Key.pem -pubout -out Liu_pub.pem
writing RSA key

E:\360downloads>hexdump -Cv msg.bin
'hexdump' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

E:\360downloads>cff_explorer msg.bin
'cff_explorer' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

E:\360downloads>openssl rsautl -in msg.bin -out msg.bin.enc -inkey Key_pub.pem -pubin -encrypt -pkcs
Can't open Key_pub.pem for reading, No such file or directory
10400:error:02001002:system library:fopen:No such file or directory:crypto\bio\bss_file.c:74:fopen('Key_pub.pem','r')
10400:error:2006D080:BIO routines:BIO_new_file:no such file:crypto\bio\bss_file.c:81:
unable to load Public Key

E:\360downloads>openssl rsa -in Key.pem -pubout -out Key_pub.pem
writing RSA key

E:\360downloads>openssl rsautl -in msg.bin -out msg.bin.enc -inkey Key_pub.pem -pubin -encrypt -pkcs

E:\360downloads>openssl rsautl -in msg.bin.enc -out msg.bin.dec -inkey Key.pem -decrypt -pkcs

E:\360downloads>pip install cryptography
Requirement already satisfied: cryptography in d:\program files (x86)\python37\lib\site-packages (2.3.1)
Requirement already satisfied: six>=1.4.1 in d:\program files (x86)\python37\lib\site-packages (from cryptography) (1.11.0)
Requirement already satisfied: idna>=2.1 in d:\program files (x86)\python37\lib\site-packages (from cryptography) (2.7)
Requirement already satisfied: cffi!=1.11.3,>=1.7 in d:\program files (x86)\python37\lib\site-packages (from cryptography) (1.11.5)
Requirement already satisfied: asn1crypto>=0.21.0 in d:\program files (x86)\python37\lib\site-packages (from cryptography) (0.24.0)
Requirement already satisfied: pycparser in d:\program files (x86)\python37\lib\site-packages (from cffi!=1.11.3,>=1.7->cryptography) (2.19)

E:\360downloads>pip install libcffi-dev
Collecting libcffi-dev
  ERROR: Could not find a version that satisfies the requirement libcffi-dev (from versions: none)
ERROR: No matching distribution found for libcffi-dev

E:\360downloads>pip install libcffi
Collecting libcffi
  ERROR: Could not find a version that satisfies the requirement libcffi (from versions: none)
ERROR: No matching distribution found for libcffi

E:\360downloads>pip install cffi
Requirement already satisfied: cffi in d:\program files (x86)\python37\lib\site-packages (1.11.5)
Requirement already satisfied: pycparser in d:\program files (x86)\python37\lib\site-packages (from cffi) (2.19)

E:\360downloads>

猜你喜欢

转载自blog.csdn.net/qq_30007885/article/details/91991302
今日推荐