Have a look in the demos/encrypt folder:
https://github.openssl.org/openssl/openssl/tree/master/demos/encrypt
There has been an amount of effort put into updating these for 3.0 &
later. There is more to do.
Pauli
On 10/4/22 23:50, Kenneth Goldman wrote:
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.
[kgold] You cannot encrypt long streams with RSA. DES is deprecated.
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.
*//*
[kgold] Post a short example that did not work.