C++ Programming on Linux - OpenSSL EVP PKEY Encrypt and Decrypt

Publicado el: 02 marzo 2022
en el canal de: Hui Yuan
2,416
23

In application, the common usage of RSA public key/private key pair are: signing, verify, encryption and decryption. In this short video, it has demonstrated how to used RSA public key/private key to perform encryption and decryption.
The example used in this video is:
Text Book RSA Key pair Example: Bob plan to send secret message to Alice;

1) Alice send her public key to bob, and keep private key to herself
2) Bon encrypted message using Alice's public key and send encrypted message to Alice
3) Alice received encrypted message and decrypted hash message using private key
4) after decryption, Alice is able to print/read decrypted message (in text)

The example of this video can also be performed through OpenSSL command line.
openssl rsautl -encrypt -inkey public_key.pem -pubin -in original_message.txt -out encrypt_message.dat
openssl rsautl -decrypt -inkey private_key.pem -in encrypt_message.dat -out decrypt_message.txt

The example code of this video have been uploaded onto GitHub for your reference:
https://github.com/yuanhui360/CPP-Pro...


En esta página del sitio puede ver el video en línea C++ Programming on Linux - OpenSSL EVP PKEY Encrypt and Decrypt de Duración hora minuto segunda en buena calidad , que subió el usuario Hui Yuan 02 marzo 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2,416 veces y le gustó 23 a los espectadores. Disfruta viendo!