生成一个1024位的密钥:
openssl genrsa -out test.key 1024从这个密钥中分离出公钥:
openssl rsa -in test.key -pubout -out test_pub.key对hello.txt进行加密:
openssl rsautl -encrypt -in hello.txt -inkey test_pub.key -pubin -out hello.en对hello.en进行解密:
openssl rsautl -decrypt -in hello.en -inkey test.key -out hello.de
本文介绍如何使用OpenSSL工具生成1024位的RSA密钥对,并利用该密钥对文件进行加密及解密操作。具体步骤包括生成私钥、分离公钥、加密文件以及解密文件。

4423

被折叠的 条评论
为什么被折叠?



