Slashdot Mirror


Fast File Encryption for Windows?

cryptoz wonders: "I've used numerous encryption applications for both Windows and Linux over the past few years and have always been satisfied. Until I realized I needed to start encrypting large files (say 10 to 30 GiB), or at least a large number of small(er) files. I found that everything I use seems to take hours and hours to compress, encrypt and shred. Not to mention decompressing, decrypting and deleting on the other end. Every web search I do on the topic seems to turn up mostly closed-source applications or snake oil, neither of which is acceptable. Does Slashdot have any suggestions for fast file encryption? I should make it clear that in my particular case, I do not need to have a perfect key or incredibly secure encryption, since it is not the weakest link (as I am susceptible to hardware key-loggers, CRT eavesdropping and the like). The encryption needs to be just strong enough, but most importantly, *fast*." This is a worthwhile question, but when dealing with files in the 10s of GB, can anything really be considered to be "fast"?

23 of 117 comments (clear)

  1. TrueCrypt by RemovableBait · · Score: 4, Informative

    I'd say your best bet'd be TrueCrypt.

    You linked to it yourself, so you should be aware of the strengths of the application. It does on-the-fly disk encryption with either whole partitions or disk image files, has absolutely no problem with massive disks (I have a 40GB image on a USB drive), and is pretty fast. My benchmarks come up with 50MB/s average throughput (around 56MB/s encrypting, 47MB/s decrypting) for 256bit AES encryption on my machine. TrueCrypt seems to cope well with files of any size, and while I can't say I've tried 30GB, 4.7GB DVD images work very well indeed.

    One thing that really makes it stand out in your scenario is the ability to use keyfiles. This allows you to select one or more files that will be used (hashed?) with your password to secure your data against those hardware keyloggers. (Although, I would question whether encryption is really required if you aren't that bothered about security.)

    The best part of TrueCrypt is that it is completely open-source. No closed/proprietary systems and no snake oil. For encryption on Windows, when the built in stuff doesn't cut it, TrueCrypt is the only way to go, IMHO.

  2. Dunno why noone mentioned it... by Monokeros · · Score: 5, Funny

    But you should look at TrueCrypt

    --
    The Statue of Liberty is America's lawn jockey.
  3. Yes... by GillBates0 · · Score: 4, Funny
    ...when dealing with files in the 10s of GB, can anything really be considered to be "fast"?

    Yes, a station wagon filled with tapes of 10GB+ files doing 80mph on a highway is going at a pretty fast clip in my opinion. YMMW.

    With apologies to AS Tanenbaum.

    --
    An Indian-American Hindu committed to non-violent thought/speech/action alarmed by the global explosion of radical Islam
  4. SureCrypt (freeWare) by neonprimetime · · Score: 5, Informative

    Ever tried this? SureCrypt

    SureCrypt is an ultra small encryption program designed for fast processing of extremely large files. It can encrypt or decrypt files as fast as Windows Explorer can copy them. SureCrypt presents a flexible user interface with detailed record of all operations.

    1. Re:SureCrypt (freeWare) by ortholattice · · Score: 3, Interesting

      How I am to know that 10 years from now my archived files won't be permanently lost because the closed-source SureCrypt no longer runs on the then-current Windows? This is one of several reasons I wouldn't touch a closed-source encryption program with a 10-foot pole. (Other reasons include no assurance of encryption strength and no assurance that there isn't a backdoor key. Plus it won't run on Linux, and afaik has no command-line interface for scripting even on Windows.)

  5. Isn't TrueCrypt Linked in the POSTING? by neonprimetime · · Score: 5, Insightful

    Ok ... is it just me, or is TrueCrypt linked IN THE FREAKIN' POSTING ABOVE? Why is everybody's answer of "TrueCrypt" getting modded as informative?

    1. Re:Isn't TrueCrypt Linked in the POSTING? by taskforce · · Score: 2, Informative

      Shhh! If I promise to mod you informative will you not tell the mods?

      --
      My 3D Texturing Skinning work (under construction)
    2. Re:Isn't TrueCrypt Linked in the POSTING? by neonprimetime · · Score: 2, Funny

      Did I hear that correctly? Do we have a bonified government politician posting on /.?

  6. -1, Pedantry by Gothmolly · · Score: 2, Insightful

    GiB? Dude, just say GB, we all get it. It's a buttload of data.

    --
    I want to delete my account but Slashdot doesn't allow it.
    1. Re:-1, Pedantry by Lord+Ender · · Score: 3, Insightful

      "1. Because GB is a more well known shorthand for a data amount."

      That is a reason TO use GiB. It promotes awareness so that there is no confusion when it DOES matter.

      "2. Because a difference of 73,741,824 bytes doesn't matter in this article."

      Um... that supports the argument that it doesn't matter one way or the other which one is used, making the initial complaint seem pointless.

      --
      A slashdotter who didn't build his own computer is like a Jedi who didn't build his own lightsaber.
  7. Who's asking? by UnknowingFool · · Score: 2, Funny

    Dear cryptoz, We'd like to discuss you encrytption concerns. With our vast experience in encryption and decryption, we believe through our highly effective questioning we can find the right product for you. Please arrive at our facility at Fort Meade at any time. Ask for the Best Interest of National Security Special at the front desk when you arrive. Sincerely, The NSA

    --
    Well, there's spam egg sausage and spam, that's not got much spam in it.
  8. Another nod for Truecrypt by cptgrudge · · Score: 2, Interesting
    Personally, I used truecrypt on Windows before I moved to Ubuntu, and use the same now, though it's a little more work to get it running. It looks like you've used it before, though. I'm not sure why truecrypt wouldn't work.

    As far as shredding files goes, that isn't really connected with the encryption process, but more to your hard disk speed. Writing random bits to a 10-30 GiB file is going to take a while no matter what program you use.

    --
    Qualitas edurus commercium, nullus penitus net rimor, nullus deus beneficium
  9. Re:TrueCrypt by flooey · · Score: 2

    One thing that really makes it stand out in your scenario is the ability to use keyfiles. This allows you to select one or more files that will be used (hashed?) with your password to secure your data against those hardware keyloggers. (Although, I would question whether encryption is really required if you aren't that bothered about security.)

    It all depends on the threat model. I could see desiring encryption without being bothered by keyloggers if you're worried about someone breaking into your car and stealing your laptop full of sensitive information. Most people won't break into your car to install a keylogger.

  10. Security costs CPU cycles by Ckwop · · Score: 2, Insightful
    I found that everything I use seems to take hours and hours to compress, encrypt and shred. Not to mention decompressing, decrypting and deleting on the other end.

    XOR against a repeated key would be ultra-fast but woefully insecure. When will people learn that it takes CPU cycles to encrypt that much plain-text? In just about every other field you don't get something for nothing; why should Cryptography be any different?

    Simon

  11. Hardware acceleration. by wild_berry · · Score: 5, Interesting

    I suggest getting some hardware acceleration: the VIA EPIA boards use electrical interference in their traces to suppy entropy to a hardware encrypt/decrypt enginge that can achieve 25 Gb/s encryption. This is a 1.0GHz passively-cooled board with SATA ports, hardware MPEG2 decoding and all on a 17x17 cm^2 board.

  12. You're all terrorists and kiddie-diddlers by QCompson · · Score: 2, Funny

    Everyone who uses encryption is a terrorist and/or a child molester. If you're not doing anything wrong, what do you have to hide?

    Personally, I videotape all my daily activities and archive them in case a law enforcement agency wants to know what I was up to on a particular date. I suggest you all do the same. Think of the children and 9/11!!!

  13. Seagate's self-encrypting hard-drive by krispy78 · · Score: 2, Informative

    Seagate recently released a self-encrypting hard-drive... does hardware level encryption at S-ATA link speed, or so they claim. More info: http://www.apcstart.com/site/dwarne/2006/06/263/se agates-self-encrypting-hard-drive

  14. Fast encryption, slow decryption by schlpbch · · Score: 2, Funny

    A fast and reliable way to encrypt a file is to sweep a strong magnet across your hard disc. Decryption of the files is more difficult and time comsuing, scientist are still working hard to find the final solution.

  15. Are you sure it's the encryption? by cow-orker · · Score: 3, Insightful

    Assume a sustained transfer rate of 30MB/s, which is quite good for a single hard disk. You won't get that much when transferring lots of small files. Reading 30GB takes 1000s or about 18 minutes, writing it back another 18 minutes, doing both takes longer, because interleaving both processes will lower the transfer rate. If you're shredding the old data, you can add in another 20 minutes per pass. So encrypting 30GB takes 60 minutes, probably a lot more, and there's nothing you could do about it in software.

    Encryption itself... I seem to remember that TwoFish needs 26 clocks to encrypt 8 bytes on a Pentium. So your 2.6GHz CPU can encrypt 8GB/s (but the bus cannot deliver that much, I suspect). Add in some fudge factors for OS overhead and other tasks, and you're still two orders of magnitude below the IO time.

    You need faster disks.

    1. Re:Are you sure it's the encryption? by WuphonsReach · · Score: 2, Insightful

      Encryption itself... I seem to remember that TwoFish needs 26 clocks to encrypt 8 bytes on a Pentium. So your 2.6GHz CPU can encrypt 8GB/s (but the bus cannot deliver that much, I suspect). Add in some fudge factors for OS overhead and other tasks, and you're still two orders of magnitude below the IO time.

      BTW, TrueCrypt includes a little benchmark tool to allow you to calculate throughput rates for the various algorithms (as implemented inside of TrueCrypt). Useful for seeing just what the best-case rates are for a particular CPU. On the Opteron 246, they stack up as:

      Blowfish (47) > Twofish (41) > CAST5 (35) > Serpent (34) > AES (33) > Triple-DES (12)

      Where (NN) is the mean speed in megabytes/sec for encryption/decryption rates. Your data rates will vary on other CPUs and on other motherboards.

      --
      Wolde you bothe eate your cake, and have your cake?
  16. Re:Truecrypt by WuphonsReach · · Score: 4, Informative

    The submitter's question linked to truecrypt as one of two programs he's tried and found not fast enough. I hear it's real nice, but he's already found it too slow for his needs.

    I'm also amused by the submitter's "too slow" comment for TrueCrypt. I use it on my 4-year old laptop (a 1.7Ghz Pentium 4 mobile) and find that it's the hard drive that is the bottleneck rather then the CPU. I'm using the stock TrueCrypt settings for encryption algorithm (256bit AES, LRW mode) and hash (RIPEMD-160). I have two volumes on the laptop, one is a ~700MB TrueCrypt file volume used for extra sensitive data and the second is a full-disk encrypted FireWire drive attached to the unit (160GB).

    Copying from the laptop's hard drive to the encrypted external FireWire drive gives me transfer rates of around 10-12MB/sec and uses up around 30% of my CPU. Which is not too shabby for a 4 year old laptop. I would hardly call it "too slow".

    I just did the benchmarks for a 100MB buffer, the left number is speeds on my 1.7Ghz Pentium 4 mobile laptop CPU, on the right is performance of a 2Ghz Opteron 246 chip (TrueCrypt 4.2 is not multi-threaded so it only used one of the two chips installed in that system):

    Blowfish 35.1MB/s 46.8MB/s
    Twofish 21.3MB/s 40.6MB/s
    AES 28.5MB/s 32.6MB/s
    Serpent 11.7MB/s 34.3MB/s
    CAST5 10.5MB/s 34.7MB/s
    Triple-DES 6.2MB/s 12.0MB/s

    Those are not scientificially rigorous tests, but the built-in benchmark tool shows that the laptop's P4 is capable of very high encrypt/decrypt rates. It also looks like Serpent/CAST5 algorithms possibly don't fit inside the CPU cache very well (the Opteron chip has a larger L2 cache) or Serpent/CAST5 use operations that are more efficient on the Opteron chip. I don't know enough about the individual characteristics to make more educated guessed then that.

    It's a pity that TrueCrypt isn't multi-threaded, or the dual-CPU Opteron system would've scored even higher on the TrueCrypt benchmark. I've run the benchmarks for a few different sizes (10MB / 50MB / 100MB / 500MB) and the numbers all tend to add up the same way (within a few percentage points) across the board.

    --
    Wolde you bothe eate your cake, and have your cake?
  17. Re:Truecrypt by duffbeer703 · · Score: 2, Funny
    I'm also amused by the submitter's "too slow" comment for TrueCrypt. I use it on my 4-year old laptop (a 1.7Ghz Pentium 4 mobile) and find that it's the hard drive that is the bottleneck rather then the CPU.


    It crimps the submitters style to have skipping porno. What else are people doing to generate 30GB of data the needs to be encrypted.
    --
    Conformity is the jailer of freedom and enemy of growth. -JFK