Collections:
Other Resources:
OpenSSL "rsautl -encrypt" - Encryption with RSA Public Key
How to encrypt a file with an RSA public key using OpenSSL "rsautl" command?
✍: FYIcenter.com
If you want to encrypt a file with an RSA public in order to
send private message to the owner of the public key,
you can use the OpenSSL "rsault -encrypt" command as shown below:
C:\Users\fyicenter>type clear.txt
The quick brown fox jumped over the lazy dog.
C:\Users\fyicenter>\local\openssl\openssl.exe
OpenSSL> rsautl -encrypt -pubin -inkey my_rsa_pub.key -in clear.txt
-out cipher.txt
OpenSSL> exit
C:\Users\fyicenter>dir *.txt
128 cipher.txt
45 clear.txt
Options used in the "rsautl" command are:
Note that the encrypted data, cipher.txt, can only be decrypted by the owner of the public key with his/her matching private key.
⇒ OpenSSL "rsautl -decrypt" - Decryption with RSA Private Key
⇐ OpenSSL "rsautl" Command Options
2017-06-11, ≈15🔥, 0💬
Popular Posts:
How to see more security related information on View Page Info in Mozilla Firefox 47? To see more se...
What is "certmgr.msc" on Windows computer? "certmgr.msc" is a tool to manage certificates for Window...
Detailed information of 'My Keys': RSA 2048-Bit Private Key - 06ab3b05f953c0b7c23379a2 1c2da8ee.
What can I use OpenSSL "ans1parse" command for? What are options supported by the "ans1parse" comman...
Certificate Summary: Subject: www.yahoo.com Issuer: Equifax Secure Certificate Authority Expiration:...