Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 05-18-2007, 08:41 AM   #1
Senior Member
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,291

Rep: Reputation: 52
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, 11:05 AM   #2
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 11:08 AM.
Old 05-18-2007, 01:35 PM   #3
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, 12:16 AM   #4
Senior Member
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,291

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


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

All times are GMT -5. The time now is 03:06 PM.

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