RSA and DES encryption and decryption with C++ on Windows

John Alway jalway at
Sun Apr 10 01:45:06 UTC 2022


I'm a C++ programmer.   I recently downloaded and installed the OpenSSL
library to my Windows 10 machine.

>From this site
 I downloaded " Win32 OpenSSL v3.0.2" MSI

  I'm using Visual Studio 2019.

Anyway, the long and short of it is that I am having a bear of a time
getting things to work.  I did get base64 coding/encoding working, and I
was able to get

this guys example working:
However, his second example here, only half
worked for me.  The encryption worked, but the decryption threw an error
in EVP_DecryptFinal_ex, where it returned error code 0.

These were just examples I looked at.

Anyway, I'm trying to encrypt/decrypt using RSA and DES schemes.  I've
tried some of the older code examples I could find, but some of the
functions weren't recognized by my header files.

Can anyone help me with this?  I want to encrypt fairly long strings.  A
few hundred bytes or so.   Maybe longer.  If I can do a continuous stream
of blocks that would be great, as well.

 Also, is there an efficient way to search this email list?  I was trying
to search for similar questions but wasn't able.    I guess I could use
google and the email list name?

Thanks for any help,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the openssl-users mailing list