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"?

117 comments

  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. Truecrypt by kueball · · Score: 0, Redundant

    I don't know if this is in the ballpark, but we Truecrypt on hard drive backups we take off site. It is open source which is nice. It allows you to mount a virtual hard drive that is either a file on an existing partition or as a sort of phantom partition that only TrueCrypt will see. It encrypts on the fly, hence it's usefulness to us. We just have a few usb hard drives. When we plug them in, we can mount them using a password or more elaborate means. It may be worth a peek.

    http://www.truecrypt.org/

  3. Guess what by A+beautiful+mind · · Score: 1

    Security is the antithesis of comfort/ease of use.

    Also, security can be increased to downright unusability, too.

    --
    It takes a man to suffer ignorance and smile
    Be yourself no matter what they say
    1. Re:Guess what by HolyCrapSCOsux · · Score: 1

      I would consider that a feature. If what you are working with is so super-double-secret, maybe it isn't safe for you to see it either.
      a la "I got an idea, an idea so smart my head would explode if I even began to know what I was talking about."

      --
      0xB315AA8D852DCD3F3DCA578FD2E0BF88
    2. Re:Guess what by mseeger · · Score: 1
      Security is the antithesis of comfort/ease of use.

      Not really: There are three offerings: cheap, secure, useable... Pick any two

      You may combine ease of use and secure, but this will cost...

      Regards, Martin

  4. Motion for Truecrypt thirded by MoOsEb0y · · Score: 1, Redundant

    It's what I use and it's quite fast. I get about 52 MB/sec encryption speed and I'm loving it.

    1. Re:Motion for Truecrypt thirded by Anonymous Coward · · Score: 0
      I'm loving it.


      Ronald will now take that cheque you owe for using that phrase.
  5. 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.
    1. Re:Dunno why noone mentioned it... by Anonymous Coward · · Score: 0

      Actually it has been mentioned a couple of times.

    2. Re:Dunno why noone mentioned it... by imyourfoot · · Score: 1

      Whoosh!

    3. Re:Dunno why noone mentioned it... by Anonymous Coward · · Score: 0

      Ok, so what's the joke? Why the +5 funny?

    4. Re:Dunno why noone mentioned it... by asretfroodle · · Score: 1

      It's linked in the story...

    5. Re:Dunno why noone mentioned it... by Anonymous Coward · · Score: 0

      Oh, pay attention, son! You're missing all the jokes!

    6. Re:Dunno why noone mentioned it... by asretfroodle · · Score: 1

      I'm pretty stupid, I miss most of them anyway.

  6. 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
    1. Re:Yes... by dhasenan · · Score: 1

      Actually, that's probably the fastest method of data transfer. Faster than pigeons or snails, even.

    2. Re:Yes... by Rakshasa+Taisab · · Score: 1

      I can imagine how the shredding is done, but how does the station wagon encrypt the tapes?

      --
      - These characters were randomly selected.
    3. Re:Yes... by Nutria · · Score: 1
      station wagon filled with tapes of 10GB+ files doing 80mph on a highway is going at a pretty fast clip in my opinion.

      Or a 747-400 Freighter full of 750GB HDDs flying at cruising speed.

      2,565 HDDs fit in a cubic meter. (http://www.westerndigital.com/en/products/Product s.asp?DriveID=137)

      The 747-400 Freighter has 777 m^3 of cargo space. (http://www.montereypeninsulaairport.com/747specsh eet.html)

      This gives 2565 * 777 = 1,993,005 HDDs.

      750GB == 698.5GiB

      This gives us a grand total of 1,392,113,992.5 GiB or 1.392 ZiB. (http://en.wikipedia.org/wiki/SI_prefix)

      The 747-400 flies at 1,040km/h and San Francisco to Boston is 4,340km.

      So that plane carries 1.392 ZiB in ~4.5 hours (16200 seconds) for a total of 85.9PiB per second.

      Unless I screwed up the math somewhere...

      --
      "I don't know, therefore Aliens" Wafflebox1
    4. Re:Yes... by Bronster · · Score: 1

      I can imagine how the shredding is done, but how does the station wagon encrypt the tapes?

      Obviously with a transubstantiation cipher[1]. Sheesh, kids these days.

      [1] you don't put labels on, and you just throw the tapes sort of haphazard into the back of the wagon - then at the far end you rely on pulling some sort of miracle out of your backside to get the data off in order.

    5. Re:Yes... by mph · · Score: 1
      So that plane carries 1.392 ZiB in ~4.5 hours (16200 seconds) for a total of 85.9PiB per second.
      Yeah, but I'd still hate to ssh over that link.
    6. Re:Yes... by RoboRay · · Score: 1

      Sure, but think about the latency.

    7. Re:Yes... by Russ+Steffen · · Score: 1

      You may want to double check the weight of 1.9 million hard drives vs. the maximum cargo weight allowance for a 777-400 freighter. A long time ago I did this same math for DLT cartridges and a 747 cargo plane, and I noticed that you couldn't fill the cargo space more than 60% full with DLTs before the plane was too heavy to take off.

    8. Re:Yes... by kjs3 · · Score: 1

      And Counterstrike would suck.

    9. Re:Yes... by Nutria · · Score: 1

      I noticed that you couldn't fill the cargo space more than 60% full with DLTs before the plane was too heavy to take off.

      DLTs, eh? You must be a DECcie.

      Good point about the weight. The -400 Freighter can carry 112,490kg of cargo, and each HDD weighs 0.6 kg, meaning 187,483 hard drives.

      Bummer, that's less than 10% of the cargo space, and "only" 130.96 EiB.

      Since the latest SuperDLT tapes have 300GB (279.4GiB) raw capacity, SuperDLT600 tapes would give you much better bandwidth.

      --
      "I don't know, therefore Aliens" Wafflebox1
  7. 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.)

    2. Re:SureCrypt (freeWare) by Aneurysm · · Score: 1

      What? This closed source SureCrypt?

      It's the first link returned by Google

  8. Just ROT2 the bits. by Anonymous Coward · · Score: 1, Informative

    Just ROT2 the bits. Or is it ROT1?

    1. Re:Just ROT2 the bits. by Watson+Ladd · · Score: 1

      He's joking. damnit. some moderators wouldn't recognize a joke if it Goatse'd in front of them.

      --
      Inventions have long since reached their limit, and I see no hope for further development.-- Frontinus, 1st cent. AD
    2. Re:Just ROT2 the bits. by Fry-kun · · Score: 1

      phhht, ROT13 is much more secure!
      and it's almost as fast as rot2, to boot

      --
      Did you know that "FTW" ("for the win") is a direct translation of "Sieg Heil"?
  9. 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 Anonymous Coward · · Score: 0


      Why is everybody's answer of "TrueCrypt" getting modded as informative?


      http://en.wikipedia.org/wiki/Astroturfing

      a.k.a. Slashvertising. You can buy accounts which have been pumped-up with mod-points by karma-whoring.

    3. 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 /.?

    4. Re:Isn't TrueCrypt Linked in the POSTING? by neonprimetime · · Score: 1

      by centrally orchestrating the behavior of many diverse and geographically distributed individuals

      Yes, ./ users are geographically distributed, but are they diverse? I don't think so. Linux loving, girl/boy-friend-less, video game addicts.

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

      ...You forgot to mention the Government Politicians

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

      From you Sig --> My 3D Texturing Skinning [pyroenvydesign.com] work (under construction)

      Nice site ... but there's no 3D Work on there? I click on 3D Work and get ... Sorry, this area of the site is still under construction. It will include renders of 3D work which I have done, mainly for various mods for games.

      New idea ... finish the site, then advertise :-P

    7. Re:Isn't TrueCrypt Linked in the POSTING? by Doctor+Memory · · Score: 0

      In Soviet US, government politicians bonify YOU!

      --
      Just junk food for thought...
    8. Re:Isn't TrueCrypt Linked in the POSTING? by Ifni · · Score: 1

      Oh, first we were expected to read the linked article(s), now we have to read the actual post as well?

      Damned elitist reading Nazis...

      --

      Oh, was that my outside voice?

  10. -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: 1

      We all know the "G" is the important letter there, but why on earth would GB be preferrential to GiB? You don't give any reason. Obviously, you don't think typing 1 extra letter is much of a reason, since you pounded out several for your post.

      --
      A slashdotter who didn't build his own computer is like a Jedi who didn't build his own lightsaber.
    2. Re:-1, Pedantry by Jugalator · · Score: 1
      We all know the "G" is the important letter there, but why on earth would GB be preferrential to GiB?

      1. Because GB is a more well known shorthand for a data amount.
      2. Because a difference of 73,741,824 bytes doesn't matter in this article.
      --
      Beware: In C++, your friends can see your privates!
    3. 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.
    4. Re:-1, Pedantry by mwvdlee · · Score: 1

      Because if people started using GiB and the likes, they couldn't bitch about harddrive manufacturers giving them less bytes than they expected.

      If people want to continue using GB when they really mean the ISO-defined GiB quantity, go right ahead. But don't complain about people choosing to use the correct measurement unit.

      --
      Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
  11. Re:Truecrypt by bill_mcgonigle · · Score: 1

    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've found Apple's FileVault too slow for video on a 1.2GHz G4, but maybe on a G5 or Core Duo it's fast enough. That's AES-128 or 256, so maybe the TrueCrypt AES implementation just needs tuning for his hardware.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  12. TrueCrypt by sardonic2 · · Score: 1

    TrueCrypt works like a v-twin on a golf cart.

  13. 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.
    1. Re:Who's asking? by Anonymous Coward · · Score: 0

      p.s. Don't forget to bring your computer.
      Thanks, The NSA

  14. 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
    1. Re:Another nod for Truecrypt by Bombcar · · Score: 1

      If the crypto is done right, shouldn't destroying the keys and maybe some random parts of the file be enough to completely remove any hope of recovering the data?

    2. Re:Another nod for Truecrypt by PitaBred · · Score: 1

      I personally prefer an 8 to 10lb, solid steel "shredder" for hard disks. You also get a visceral feedback when it's working.

    3. Re:Another nod for Truecrypt by WuphonsReach · · Score: 1

      If the crypto is done right, shouldn't destroying the keys and maybe some random parts of the file be enough to completely remove any hope of recovering the data?

      If I understand TrueCrypt's technology and assuming that you didn't let an attacker copy your TrueCrypt volume header... overwriting the first 512 bytes of a TrueCrypt volume destroys the key for that volume. Unless you have a backup of the volume header, your data is lost and unrecoverable unless you get lucky and can break the encryption key.

      So it's (theoretically) a lot faster to destroy the contents (or at least make them inaccessible to anyone) with a encrypted volume file like TrueCrypt uses. I can't say for sure whether PGPDisk or DriveCrypt use the same sort of storage system (with the encryption keys stored at the start of the volume file).

      --
      Wolde you bothe eate your cake, and have your cake?
    4. Re:Another nod for Truecrypt by cptgrudge · · Score: 1
      Not for the truly paranoid. Truecrypt does have a plausible deniability feature (aside from normally encrypted data looking like random noise), where you have a hidden volume with your "real" data in case you are forcibly made to reveal your keys. You can reveal your "key" to the person that is forcing it from you, but all they see are some "semi-private" documents that you've put there in the dummy volume. Your "real" key is still safe, and all they see is random gibberish for your other data. Since the free space on a Truecrypt volume is always filled with random noise, there's no way to prove that you have another nested volume in there.

      It does add some complexity, though. If you ever add data to the dummy volume you risk destroying your real data and it adds another step to access the real data. So, for those that don't want the hassle or risk, I imagine that shredding your deleted data would be the better option if you are forced to reveal your keys and you have deleted data that you don't want recovered.

      --
      Qualitas edurus commercium, nullus penitus net rimor, nullus deus beneficium
    5. Re:Another nod for Truecrypt by cptgrudge · · Score: 1

      I'm pretty sure that this is correct. Although, this of course assumes that the proverbial Men in Black haven't procured your computer before you've had a chance to blow away the volume header and render the data unusable.

      --
      Qualitas edurus commercium, nullus penitus net rimor, nullus deus beneficium
    6. Re:Another nod for Truecrypt by cptgrudge · · Score: 1
      Yes, that would be much quicker, though it renders the disk permanently unusable, obviously. Much more fun, though.

      Reminds me of dangerous fun had with a potato cannon a buddy and I built a few years back. Something about giving a potato the same kinetic energy as a 15 pound bowling ball travelling at 125 MPH and slamming it into stationary objects still brings a smile to my face.

      --
      Qualitas edurus commercium, nullus penitus net rimor, nullus deus beneficium
    7. Re:Another nod for Truecrypt by cptgrudge · · Score: 1
      Well, I guess then one would be truly and completely fucked. Although technically, you aren't lying when you are revealing the dummy key. How easily would someone be able to remember a 20 character key under the duress of truth serum? 32 character? Although, if one has followed procedure correctly and not written the key down but relied on memorization, that might be easily extracted.

      I don't claim to be an expert on the macabre subject of interrogation methods, though. I suppose if you are simply tortured until you break, you won't lie anyway and will gladly reveal all to please your grim masters. But somehow I think that your (relatively irrelevant) encrypted data will be the least of your worries at that point.

      --
      Qualitas edurus commercium, nullus penitus net rimor, nullus deus beneficium
  15. 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.

  16. 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

    1. Re:Security costs CPU cycles by MindStalker · · Score: 1

      Yes, but there is a huge difference between unencrypting the entire file to read one bit or something that intelligently breaks the file up so you can randomly read bits of it without having to deal with the entire file. With modern computing processing speeds you can achieve decent encryption in almost the time that the average HardDrive can read with only a slighly delay.

  17. 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.

    1. Re:Hardware acceleration. by wild_berry · · Score: 1

      Quick fact-checking: the present VIA Padlock site says it can securely hash data at 20 Gb/s, in contrast to my memory telling me of VIA's pages showing a benchmark of encryption at 25 Gb/s on a CPU at around 1GHz, quadrupling the encryption capability of a P4 at 3GHz.

    2. Re:Hardware acceleration. by Anonymous Coward · · Score: 0

      17x17 cm^2?

      17cm^2 x 17cm^2?

      Is this a revolutionary new 4D board?

    3. Re:Hardware acceleration. by wirelessbuzzers · · Score: 1

      I don't suggest EPIA if what you're after is speed. They're small and low-power, but not fast. The 25 Gb/s is a joke, I don't even think the chip even has that much memory bandwidth: you might get it for ECB mode cache->cache, but the whole system will crawl.

      If you count other things your OS will be doing, an Athlon system will be faster and cheaper. However, the EPIA will be half the size and draw a third the power.

      --
      I hereby place the above post in the public domain.
    4. Re:Hardware acceleration. by Lord+Kano · · Score: 1

      I have to suspect that VIA is overstating their hardware's capability. If they aren't, why in the hell aren't they putting these chips onto PCI cards and selling crypto accellerators for web transactions? Assuming that the crypto chip is 20% of the cost of an EPIA board, you could pack 4 of the chips onto each card and still be able to sell it at a profit for $150.

      LK

      --
      "Hi. This is my friend, Jack Shit, and you don't know him." - Lord Kano
    5. Re:Hardware acceleration. by wild_berry · · Score: 1

      That would be an interesting idea. I believe that the encryption functions are part of their fork of the x86 instruction set, and run on their CPU's. That would add complexity to making a PCI encyption-acceleration device, but could be a profitable venture.

      I'm also suspicious of its capabilities -- it seems feasible to have a large source of entropy and perhaps a hashing or XOR acceleration engine -- I doubt it has the bandwidth to read and hash at 20 Gb/s as the present marketing web pages claim Padlock is capable of doing.

    6. Re:Hardware acceleration. by Anonymous Coward · · Score: 0

      VIA claims sustained throughput of 12.8Gb/s, which isn't that hard to believe. Since it's on-die, it has access to that kind of memory bandwidth. It's only doing 3.2GB/s, which is less than 4 bytes/cycle at 1GHz. Encryption is just a bunch of shifts, rotates, and XORs, and the occassional add -- which are all trivially in parallel implemented with hardware. In fact, a shift or rotate by a constant doesn't actually require any gates, it's just a rearranging of the wires.

      dom

    7. Re:Hardware acceleration. by Anonymous Coward · · Score: 0

      As you clearly realised, he wrote 17x17 cm^2, not 17 cm^2 x 17 cm^2. 17x17 cm (which I guess you'd prefer?) is a measure of length, not area.

  18. not really software by Anonymous Coward · · Score: 0

    but if you really want speed and want to pay for it:

    http://www.tarari.com/

    and you can accelerate your gneomics research while you're at it. Or whatever else you do, assuming its a CPU intensive process. (If you have a really slow I/O system, then this is a lot of wasted money; not for a friend of mine who works there though....)

  19. 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!!!

    1. Re:You're all terrorists and kiddie-diddlers by Anonymous Coward · · Score: 0

      Ah, you made my day.

  20. BestCrypt by DigitalCrackPipe · · Score: 1

    Check BestCrypt. I've been using it for years, and like it (haven't tried 10Gb though). TrueCrypt looks like the same concept, so use the trial to speed test for comparison. It's not free, but it is available for windows and linux.

    Also, be aware that your encryption choice will affect speed greatly. 448-bit is slower than 224 bit, etc. Also some algos are optimized - twofish is a pentium-optimized version of blowfish.

  21. which operation is taking too long?? by werelord · · Score: 1

    Is it specifically the encryption, or are the compression and shred (both of which often do not scale well) taking the most of the time?

  22. 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

  23. 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.

    1. Re:Fast encryption, slow decryption by moeffju · · Score: 1

      There are two *very* strong magnets right next to my hard disk's platters. The hard disk is pretty unimpressed. Chances are that you don't have any magnets available that would destroy your hard disk.

      Use a sledge hammer.

      --
      follow me on Twitter: http://twitter.com/moeffju
  24. Which encryption algorithm? by GoldenWolf · · Score: 0

    If you aren't that worried about security, you probably don't need 256-bit, 14 round AES. Consider finding software that uses Twofish or Blowfish, both of which are quite common in commercial software, and very fast. If you're really concerned with speed, you can use the XTEA algorithm. (AFAIK, no commercial software packages use this at the moment, so it might not be very helpful...)

    http://en.wikipedia.org/wiki/XTEA

  25. Not cross platform, but... NTFS built-in by WoTG · · Score: 1

    NTFS encryption seems to be pretty fast -- we use it for doing encrypted backups onto portable USB hard drives. The bottleneck seems to be the hard drive speed rather than the encryption. I think we put about 40GB on the USB drives in under an hour or so. Mind you, the drives aren't that fast, they're the little laptop drives, plus there's the USB overhead. Perhaps, rather than looking for a faster encryption program you need faster/more hard drives. Lots of data is slow to push around and if the source and destination are on the same disk, that's a lot of disk seeks to deal with.

    1. Re:Not cross platform, but... NTFS built-in by WuphonsReach · · Score: 1

      The big problem with NTFS encryption (a.k.a. Windows EFS) is that:

      - The keys are tied to the machine (you can't take those USB drives and mount them on another machine, at least not when I tested it)

      - The keys are a PITA to backup, the management interface is clunky

      - It's not the strongest system in the world (I believe there are numerous issues with how it was implemented)

      That being said, it's generally better then nothing for when you want to protect semi-confidential data. Most attackers won't take the time to break it.

      But for external USB backup drives, I strongly recommend you consider switching to something like TrueCrypt. Just create a partition, don't format it or assign it a drive label, then let TrueCrypt create a 'device' volume on the partition. You'll be assured of being able to take it from machine to machine with no worries as long as you know the passphrase and/or have the keyfiles for the volume. Works very well for laptop-centric backups using tools like SecondCopy where your target volume is the encrypted USB/FireWire drive.

      --
      Wolde you bothe eate your cake, and have your cake?
    2. Re:Not cross platform, but... NTFS built-in by WoTG · · Score: 1

      Yep, the key issue is something that people must be aware of before using EFS for backups. The keys can be copied and moved. There are good instructions for this on MSDN or MSKB, or probably both, not too hard to find. And remember to keep a couple copies of the key on floppy or CD or something. And TEST the restore procedure, preferably more than once! The interface to backup and restore keys is a tad clunky, but not too bad. You only need to do it once on the backup machine, once on a test machine, and if you need to restore onto new hardware in the distant future, once more there.

      The problem with TrueCrypt (actually, I've haven't checked, so it might not be a problem) is that the backup software expects a drive there and writeable -- it's on an overnight scheduled task. To use TrueCrypt, I would have to create a batch file of some sort to test for the existence of the USB drive, mount the TrueCrypt volume, detect the completion of the backup(s), and then unmount the TrueCrypt volume. It's probably doable, but I'm pretty happy with the EFS setup.

      I'm not aware (nor really concerned) about the EFS encryption quality as long as it's reasonably secure -- not many firms do any encryption of offsite backups (heck, most firms our size don't do off-site backups at all).

      FWIW, I use TrueCrypt for my personal backups at home. It's a good program.

    3. Re:Not cross platform, but... NTFS built-in by WuphonsReach · · Score: 1

      Sounds like your company is about the size of ours (less then 50 employees). We have a variety of backup schemes, depending on the user.

      For our remote workers using laptops, version-control software for corporate data and staying in sync with the other workers in their department. Combined with SecondCopy + TrueCrypt partitions on the USB/FireWire drives. The local USB/FW drive handles things like backing up their personal files or e-mail. We also recommend that they make use of a tool like Acronis TrueImage / Knoppix+NTFSClone / Ghost to make snapshots of their system. TrueCrypt works well as a backup target in this scenario because SecondCopy is a user-space tool rather then a background service.

      For the corporate server backups, we run a two-stage system. We have an onsite server that is large enough to hold 2 weeks of backups on disk. This server is always available so there's no worries about drives not being ready. The primary backup runs at night during off-peak times. Then, during the day, we use a workstation to copy data from the backup machine to removable hard drives.

      I'm experimenting with using TrueCrypt on those removable hard drives. The secondary backup workstation is always up and running (with a user logged in) to perform other tasks, so it should not be difficult for us to keep the TrueCrypt volume mounted. Or I could use the command-line features of TrueCrypt to automatically mount/dismount the volume. But I'll probably simply opt for leaving the drive mounted until it's time to remove it. (The removable drives are PATAs installed in StarTech DRW115 series bays/trays.)

      We take our backup drives offsite weekly (with a current rotation of 6 drives, slowly expanding to 12 drives). Tape was too finicky for us. I had originally considered encrypting the target data using a GPG public-key as it was copied to the drive, but that is slow and tedious for recovery. EFS was a non-starter due to the portability issues, but TrueCrypt looks like it has the right level of security combined with ease of use.

      --
      Wolde you bothe eate your cake, and have your cake?
  26. Strong crypto can be very, very fast. by Paul+Crowley · · Score: 1

    Biham and Seberry's "Py" can clip along at approaching 2 cycles/byte. That means a high-spec machine could be decrypting that 30GB file in around ten seconds - far faster than it can read it from disk, in fact.

  27. 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?
    2. Re:Are you sure it's the encryption? by Gothmolly · · Score: 1

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

      Blowfish, Twofish, Redfish, Bluefish!

      --
      I want to delete my account but Slashdot doesn't allow it.
    3. Re:Are you sure it's the encryption? by Nimey · · Score: 1

      You're assuming that he's doing nothing else with his CPU. He could be running CPU-intensive stuff at the same time. It's impossible to tell from the description, though.

      --
      Hail Eris, full of mischief...

      E pluribus sanguinem
    4. Re:Are you sure it's the encryption? by Lord+Kano · · Score: 1

      How old is that Opteron? I'm running an Athlon 64 300+(2Ghz, 754), XP Pro (not 64 Bit) and I get means of Blowfish (48.2), Twofish(42.3), CAST5(35.2), Serpent(35.6), AES(33.8), Triple-DES(12.6).

      LK

      --
      "Hi. This is my friend, Jack Shit, and you don't know him." - Lord Kano
    5. Re:Are you sure it's the encryption? by WuphonsReach · · Score: 1

      It's an Opteron 246 chip (well, actually a pair of them, but TrueCrypt 4.2 isn't multi-threaded yet) from around early 2005. I know it wasn't top of the line when I bought it (I think the 248s were out by then).

      It's the 2GHz core with 3GB of PC3200 RAM running WinXP Pro 32bit. The motherboard is a Tyan Tiger K8W S2875 with a slightly odd memory path. Only one of the Opterons is connected to the memory, the 2nd Opteron routes its memory access through the first one. It's not ideal, but it was the smallest form factor dual-CPU motherboard I could find at the time. (The newer K8WE S2877 has separate memory banks for each CPU.)

      At some point I'll upgrade to the S2877 board with a pair of dual-core Opterons. Probably the 280s (2.4GHz) once they get below the $250-$300 mark.

      --
      Wolde you bothe eate your cake, and have your cake?
    6. Re:Are you sure it's the encryption? by cow-orker · · Score: 1

      I'm also assuming he's doing nothing else with the disk. Also, what's not to understand about "order of magnitude"?! Dude, it's I/O bound, no matter what else he's doing. And frankly, I cannot imagine why anyone would read/decrypt/write a chunk of 30GB at a time. Completely useless, doing it in the background while using the data (must be pr0n flicks anyway) would make much more sense.

    7. Re:Are you sure it's the encryption? by cow-orker · · Score: 1

      Doh, my math skills seem to be a bit rusty, and nobody notices. I also remembered the numbers incorrectly. Bruce Schneier says, Twofish costs 17.8 cycles per byte, so a 1.7GHz cpu could encrypt 100MB/s. The bus is still hard pressed to shovel that much data back and forth and it is still a lot more than a hard disk can deliver, especially if it is read and written at the same time.

  28. Kryptochef by thefogger · · Score: 1

    Hi,

    I would recommend "KRYPTO", or more precise "KRYPTO 2.0/2006 Professional Multi User Professional Data Fullbit Coding Program". The program uses the best encryption possible (called 256 bit fullbit encryption). Read up on it here:

    Kryptochef

    The application even sports a friendly GUI that is easy to use and allows even novice users to encrypt files.

    Cheers, Fogger

    --


    Um... I didn't do it!
    1. Re:Kryptochef by Anonymous Coward · · Score: 0
    2. Re:Kryptochef by kjs3 · · Score: 1

      You beat me to it. Well played!

  29. Use PKZIP by Teddy_Roosevelt · · Score: 1

    PKZIP has built-in encryption, both their old-style proprietary algorithm as well as AES. It works, it's fast, and it has all sorts of other benefits. I use it all the time and I'm very happy with it.

  30. AXCrypt by BiggyP · · Score: 1

    I don't know if it's of any use in this situation but you might want to look into AxCrypt

    http://axcrypt.axantum.com/

  31. 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?
  32. GRC.com likes [the FOSS] 'TrueCrypt' by ivi · · Score: 1

    Check out Steve's SecurityNow! podcast 41
      to hear why & more about it:

            http://media.grc.com/sn/SN-041.mp3

      For slow modem users, here's the transcript:

            http://www.grc.com/sn/SN-041.pdf

      A list of his other podcasts:

            http://securitynow.info/

    1. Re:GRC.com likes [the FOSS] 'TrueCrypt' by kjs3 · · Score: 1

      How many times does GRC.com need to be debunked before people stop linking to it?

  33. Because by billybob · · Score: 1

    We're all used to seeing just "GB", so when you see "GiB", it throws you off because it doesn't look right. Plus it looks like a word, in fact is a word (slang) in online FPS games. Plus it's a way of "showing off" for the technically "elite", aka the snobs who think they are so fucking smart and they just can't believe other people would prefer "gigabyte" over "gibibyte" :P

    --
    Joseph?
  34. Re:Truecrypt by bill_mcgonigle · · Score: 1

    Good data, thanks! Sounds like the submitter is looking for algorithmic magic then, or his machine is just too old - blowfish is a nice fast algorithm - I use it for all my SSH tunneling work and it gives me about 3x over stock (3des?).

    IIRC TrueCrypt is going to multithreadded-IO in a near-future release so that should help even more with heavy disk access.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  35. Re:TrueCrypt by Anonymous Coward · · Score: 0

    and that's good or bad????

  36. Whole disk by markcic · · Score: 1

    The real solution is don't encrypt individual file. Encrypt the whole disk including free space. Takes awhile to initially encrypt but not a big performance hit on use.

  37. Snake Oil: Re:Kryptochef by kjs3 · · Score: 1

    Wow...if ever there was a site that screamed to be included in Schneier's Snake Oil Crypto page, this is it. Total rubbish.

    1. Re:Snake Oil: Re:Kryptochef by Anonymous Coward · · Score: 0
  38. Consider Tiny Blowfish - skip the shredding step by Anonymous Coward · · Score: 1, Informative

    Bear with me for a moment while I try to get to the point as directly as I can.

    There's a program called "Tiny IDEA" which implements the IDEA cipher. It's written in assembler for DOS, and comes with source code; the executable is about 500 bytes. It was originally written by Fauzan Mirza (who has credibility in that he also won Bruce Schneier's $10,000 award for best attack on Twofish during the AES competition). It was later further optimized and improved by someone named Mark Andreas, who I've never heard of in any other context. I'm not qualified to judge the quality of these programs directly, but when you read the manual it's pretty clear that Andreas knew what he was doing.

    Tiny IDEA inspired a slew of other "Tiny" encryption programs by other authors, some anonymous, which can be found (free, and mostly with source code) at http://www.afn.org/~afn21533/rgdprogs.htm
    (This is an interesting little site largely devoted to privacy and encryption, run by some random cool old guy. I think he wrote some of the "Tiny" spinoff programs.) Of particular note are a couple of Blowfish implementations, because as far as I know Blowfish is the fastest of the strong algorithms. Again, I can't vouch for the quality of these programs, but at least they seem to have a good genealogy.

    Now obviously Blowfish implementations are a dime a dozen, but the reason I mention these "Tiny" ones in particular is because they encrypt your original file in-place, right there on the same disk sectors where it already resides, instead of creating a separate output file. This means you probably don't need to shred the original as a separate step, which might save you a great deal of time.

  39. Don't laugh... by wildblue7272 · · Score: 1

    But have you seriously considered using Windows built in Encrypting File System (EFS)? WHEN CONFIGURED PROPERLY, it can be both very secure and speedy.

    Not sure what you are doing with the files (i.e. staying on your machine or being distributed, etc.) but the EFS might be a very simple and effective option. Microsoft's website actually has some fairly good articles about it's usage beyond the stupid-user stuff.

    What's important to remember is that you MUST use Window's SYSKEY program in mode 2 or 3 in order for EFS to be secure... otherwise it can be cracked in minutes. Good luck!

  40. Read the forums about EFS. by Futurepower(R) · · Score: 1

    First, read the forums and learn about the people who have lost all their EFS data because of the sloppiness of Microsoft.

    In some cases EFS is tied to the computer on which it is installed. You cannot restore it to another computer, even if you have all the keys.

    Were you thinking, oh this time Microsoft won't be sloppy?

    1. Re:Read the forums about EFS. by wildblue7272 · · Score: 1

      Author never said he/she was moving files to/from different computers, as noted in my comment. EFS can be safe, secure, and FAST (what the author wanted) if you take the time to set it up properly.

      Author has a problem, I'm trying to offer a viable solution... a solution that I have found to work well on the enterprise level. So spare me the anti-M$ rhetoric, please.

  41. Primary Cryption by VernonNemitz · · Score: 1

    An open source program called "Primary Cryption" seeks high security over speed.
    But since you get the source code and it is well-commented, you could probably modify it yourself to be less secure ( you decide how much) and a lot faster.
    It works under Linux/Wine, and It can also handle multiple files. (Confession: I wrote it, and need to make myself write a helper program to keep track of keys and make it easier to handle multiple files, but I haven't had the time.)

  42. 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
  43. ever consider a mac and file vault by Anonymous Coward · · Score: 0

    get a mac turn on file vault problem solved

  44. He doesn't know what TrueCrypt is. by trifish · · Score: 1

    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.

    It sounds you don't know what TrueCrypt really does. Real-time transparent encryption does not "compress" nor "shred" anything.

  45. Wait a minute... by RemovableBait · · Score: 1

    Nice troll you got going there. Real nice.

    Anyone else notice that the submitter is called 'cryptoz', or that his linked website, http://www.sheehy.ca/crypto/, is called "The Cryptography Center"?

    Also the little matter of his website's description saying "This website is designed as a location for as many cryptography resources as possible. The intent is to collect a large number of articles for those who are interested in learning more, practical computer applications to download, lists of other resources, and an open forum for discussion on cryptographic techniques. As well, I hope this website will be a new home for those interested in the science of keeping secrets."

    Am I the only one who thinks that this is someone looking to pick the brains of millions of nerds in order to populate their website? You really need to encrypt "30GiB"? Yeah, my arse you do matey.

  46. Re:TrueCrypt by julesh · · Score: 1

    Agreed. One point worth noting is that I can't think of many ways of producing a dataset that large where the data is produced faster than TrueCrypt can encrypt it. Don't store it on an unencrypted partition and then encrypt it for processing, produce it directly on the encrypted partition and then move the resulting data. Similarly, don't decrypt to local storage at the other end, use the file directly from the encrypted partition; chances are your consuming application (presumably some kind of data analysis or data mining tool) will be slower than the decryption too. You'll want two encrypted partitions so you can alternate which one you're writing to and which one you're moving, but that doesn't need any more space (20GB) than doing the encryption offline would.