Dr. Stephen Henson escribió:
On Thu, Nov 08, 2007, Lidia Fernndez wrote:

Hello all!!

I have an application that interact with Linux and windows.
i have to cypher a file in Linux, and windows has to decrypt it.

I use openssl and 3des to cypher it.

openssl enc -des3 -salt -in file.txt -out 3descifr.txt -pass pass:lidia CIPHER openssl enc -des-ede3-cbc -d -in 3descifr.txt -out 3desdescifr.txt -pass pass:lidia DECRYPT

Do you know if i can decrypt the file with Java??


You need to implement the relevant functionality. That means parsing
the file to get the salt and then implemeting EVP_BytesToKey() in Java using
the documented algorithm.



If i use -k instead of -pass, i think that -k option specify the key in HEX.

       openssl enc -des3 -salt -in file.txt -out 3descifr.txt -k pass:lidia


Then i think that isn't necessary implement the EVP_BytesToKey(), is this all right??
Do you know what is the padding that is used to encrypt it??

Do you know any library in Java that use the 3des algorithm??

Regards!




Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]


--
*******************************************************************
LIDIA FERNANDEZ CARPES
Departamento de Ingenieria de la Informacion y las Comunicaciones
Facultad de Informatica
Universidad de Murcia. Campus de Espinardo
30080 Murcia (SPAIN)
Tel.: +34 968 364644
Fax:  +34 968 364151
email: [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