Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to encrypt & decrypt large files using openssl: (3 Items)
   
How to encrypt & decrypt large files using openssl  
While encrypting large files using openssl, it gives large size error. My file to be encrypted size is more than 100 
bytes.

Thanks,
Manas
Re: How to encrypt & decrypt large files using openssl  
What's the command line you're using?

Regards,

-seanb

----- Original Message -----
From: manas sahoo [mailto:community-noreply@qnx.com]
Sent: Monday, September 12, 2011 12:31 AM
To: general-community <post88770@community.qnx.com>
Subject: How to encrypt & decrypt large files using openssl

While encrypting large files using openssl, it gives large size error. My file to be encrypted size is more than 100 
bytes.

Thanks,
Manas



_______________________________________________

General
http://community.qnx.com/sf/go/post88770
Re: How to encrypt & decrypt large files using openssl  
I created a key using 

openssl genrsa -out private.key 1024

& used this key for encryption & decryption using -aes256

openssl enc -aes256 -e -pass file:/usr/bin/enc/private.key -in x1.xml -out x2.xml

openssl enc -aes256 -d -pass file:/usr/bin/enc/private.key -in x2.xml -out x3.xml

It works now.

Thanks & Regards,
Manas