LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-18-2007, 09:41 AM   #1
rblampain
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 838

Rep: Reputation: 35
encryption & disk usage


I'd like to find out how normal files translate in term of disk space used after encryption in a partition or disk encryption scenario.

For example, if I have many small files of 512 bytes or 1024 bytes, how much disk space will they take within an encrypted partition or disk.?

Thank you for your help.
 
Old 05-18-2007, 12:05 PM   #2
MoMule
Member
 
Registered: Jul 2006
Posts: 134

Rep: Reputation: 15
I don't know the specifics you are looking for, but I have read that when using encryption algorithms on files you don't need to compress those same files (either before or after encryption) as the two tasks create roughly the same file sizes due to the mathematical similarities between compression and encryption.

If this is true:

Test this out by creating a small file. First encrypt a copy of it and use ls -lha to see the size. Then compress another copy of the original file and again use ls -lha to check the size. Compare the two file sizes. If they are roughly the same, then you can estimate what a folder full of small files compressed would be in size once the same folder is encrypted...

I believe that if the above is true then it should hold true for files being placed on an already encrypted disk or folder.

Deion "Mule" Christopher

Last edited by MoMule; 05-18-2007 at 12:08 PM.
 
Old 05-18-2007, 02:35 PM   #3
R_Hellvis
LQ Newbie
 
Registered: Jul 2003
Distribution: Slackware 11. Ubuntu 7.04
Posts: 6

Rep: Reputation: 0
There will be some overhead using any type of encryption (if the file isn't compressed before encryption. However, the file will only get a tiny bit larger depending on the algorithm used.
 
Old 05-19-2007, 01:16 AM   #4
rblampain
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 838

Original Poster
Rep: Reputation: 35
Thank you very much for the answers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
NAS + disk encryption Chris594 Linux - Networking 4 07-11-2006 01:31 PM
disk encryption ankscorek Linux - Security 5 05-03-2006 01:59 PM
Disk encryption solution for both Windows and Linux ddaas Linux - Security 4 03-15-2006 07:53 AM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 06:55 AM
101% disk usage on an empty disk tsiuser Linux - Software 3 01-28-2004 07:24 PM


All times are GMT -5. The time now is 02:45 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration