Hello, 

Yes, I encrypt with symmetric key ciphers *.doc and *.pdf.

You have that open the files in binary mode.

On 4/13/05, Rafael Cividanes <[EMAIL PROTECTED]> wrote:
>      Hi,
> 
>    I'm trying to make a function to get a file in word format (.doc) ,
> encrypt and decrypt it. I'm using symetric encryption with EVP API. When
> I use .txt files, everything works properly, but with .doc files it fails.
>     Can EVP API be used to encrypt a .pdf file or an excel file? I can't
> imagine how to do this, once EVP_EncryptUpdate and EVP_EncryptFinal_ex
> get the input in unsigned char* format. How can I make this conversion?
> 
>     Thanks in advance,
> 
>     Rafael
> 
> --
> Rafael Cividanes
> Instituto Tecnológico de Aeronáutica - ITA
> Divisão de Ciência da Computação - IEC
> Pça. Mal.Eduardo Gomes, 50 Vila das Acácias
> CTA-ITA-IEP    12.228-900 São José dos Campos,SP
> Prédio da Guerra Eletrônica - Sala 235
> Tel 12-39476891
> E-mail: [EMAIL PROTECTED]
> 
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to