LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-27-2008, 11:45 AM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Rep: Reputation: 31
How to crypt big file?


Hi,
The openssl rsa , permit to crypt just small files ( < 120 Bytes I think), so if I have big file and want to send it to my friend, of course I have his public Key?

must I split it in smaller ones ? If I do it throw the mail, does the MTA do it in my place ??

thanks a lot
bela
 
Old 06-27-2008, 11:52 AM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
What type of file, and how big is it? Can you compress it?

$ gzip your_file

$ gpg --encrypt --armor your_file.bz (or substitute with your openssl equivalent)

If, after it's been compressed and encrypted, it is still > 2MB or so, you might consider getting it to him in some other way (i.e. not email).
 
Old 06-28-2008, 06:21 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Yeah, you could upload the file to a Web server and just send him the link. But if you need to use email and the file is too big for the attachment limit you could use the split command to break it into chunks.
 
Old 06-29-2008, 07:49 AM   #4
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 772

Rep: Reputation: 242Reputation: 242Reputation: 242
I've had no trouble with openssl and large files (several hundred mb, maybe 1 gig). Compress it first, to save some space.

Code:
openssl enc -bf -e -a -salt -in file.tar.bz2 -out file.tar.bz2.bf

mail -s "There you go" -a file.tar.bz2.bf your_friend@his.domain.tdl
Leave off the -a for no base64, and it will be done for you if by mail.

Then he'd need to know the passwd you used. However, if you already have his PGP key, then the above suggestion (w/GPG) is probably the better choice. Be aware that many mail servers have size limits on the files they will send (mine is 50mb). There are plenty of free webhosts, though, if you don't have your own site to post it. If you IRC, you could DCC it, too.

I came across this one, but not actually used it (I've an ftp server, so no real reason to). They report that you need javascript/flash enabled, but beyond that no weird limits/timers/downloaders needed. The do mention some ads, but that's to be expected if they are giving away bandwidth to host people's files (which costs money). http://mihd.net/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Why Big Compute and Big Storage will meet Big Pipe at the Last Mile LXer Syndicated Linux News 0 12-23-2007 01:20 PM
Trouble mounting crypt file reveastbayray Linux - General 3 03-23-2007 02:34 PM
Only load last portion of a file, instead of the whole really big text file 1veedo Linux - General 2 02-20-2006 06:34 PM
cannot succeed using e2fsck on an ext3 crypt file, Suse V. 10 DeekBeek Linux - Newbie 5 01-18-2006 09:10 AM
using a random file as password to dm-crypt qwijibow Linux - Security 6 11-08-2004 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration