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:
Public Key Summary: Key Identifier: B1:3E:C3:69:03:F8:BF:47: 01:D4:98:26:1A:08:02:EF: 63:64:2B:C3Name...
Certificate summary - Owner: *.sape.ru, LTD Sape, L=Moscow, ST=Russian Federation, RU Issuer: Thawte...
Certificate summary - Owner: thepiratebay.se, Domain Control Validated Issuer: SERIALNUMBER=10688435...
Certificate Summary: Subject: login.yahoo.com Issuer: DigiCert SHA2 High Assurance Server CA Expirat...
How to download Mozilla "certutil" tool for Windows? I know it can be used to manage cert8.gb and ke...