Lee Melville wrote:
>
> Hi,
>
> Here's my problem, the following code encrypts a file (i think it does
> anyhow), the test file that i use starts off as 22 bytes, the encrypted
> version is 24 ( i am not sure this is relevent). Anyhow the problem is when
> i come to decrypt the file using the o
Hello,
If you are trying to encrypt a message using your program below and decrypt
it
using the OpenSSL command line tool, you will need to use the -nosalt option
since
you have NULLed the salt in:
EVP_BytesToKey(ciph,EVP_md5(),NULL,(unsigned
char*)passwd,strlen(passwd),1,(unsigned char *)key,(u