Slashdot Mirror


Seeking Current Info on Linux Encrypted FS?

slick_rick asks: "I'm looking for info on encrypted file systems under Linux to help my employers company move away from Microsoft centric solutions. However the latest HOWTO is two years old, the latest kernel patch dates back to April (and 2.4.3) and even the Sourceforge project has nearly zero documentation and appears to be very dead. Are slashdotters using encrypted file systems? If so, what are your experiences?" We last talked about this topic, just over a year ago, in this article.

297 comments

  1. win2k by ImaLamer · · Score: 1

    I tried to use win2k's efs, and it ruined me.

    Tell them that!

    1. Re:win2k by TheCabal · · Score: 2, Informative

      I tried to use win2k's efs, and it ruined me.

      Tell them that!


      Ever heard of a File Recovery Agent? There's one set up by default on every Win2k system. And it gets better... you can add more!

    2. Re:win2k by Parsec · · Score: 1

      And it gets better... you can add more!

      Add more what?

    3. Re:win2k by xanadu-xtroot.com · · Score: 1

      And it gets better... you can add more!

      Add more what?


      Errors, probably... :-)

      --
      I'm not a prophet or a stone-age man,
      I'm just a mortal with potential of a super man.
    4. Re:win2k by Anonymous Coward · · Score: 0

      File Recovery Agents

    5. Re:win2k by TheCabal · · Score: 1

      Recovery Agents. Accounts allowed to decrypt an EFS encrypted file.

    6. Re:win2k by jrockway · · Score: 1

      That sounds.... umm... insecure. *smack* Windows... right

      --
      My other car is first.
    7. Re:win2k by silicon_synapse · · Score: 1

      So cracking the password on that one account will make all the encryption useless? Wouldn't suprise me.

    8. Re:win2k by TheCabal · · Score: 1

      That sounds.... umm... insecure. *smack* Windows... right

      You don't understand how EFS works, do you? ummm... Slashdotter taking time to do something besides railing about windows....right...

      I'll break it down for you: EFS Recovery Agents require that 1) a File Recovery certificate be issued, 2) the public key for that certificate be added by an Enterprise Admin as a designated Recovery Agent, and 3) the Agent have possession of the certificate, since you will need the private key in order to decrypt the encryption key for the file.

      Any questions, or have I sufficiently blown away your FUD?

    9. Re:win2k by TheCabal · · Score: 1

      So cracking the password on that one account will make all the encryption useless? Wouldn't suprise me.

      Nope. You also need the Recovery Certificate for the cracked account to the be installed on your workstation. Merely cracking the account won't give you automatic rights to recover files. EFS security is certificate based.

    10. Re:win2k by Anonymous Coward · · Score: 0

      one more tiny one. what happens if one of your file recovery agent account passwords is backorificed ?

    11. Re:win2k by mindstrm · · Score: 1

      Can anyone fill us in on this windows folder/file encryption? How does it work? What does it use as a key, and how is that key accessed?
      I read it uses AES

      I would assume a key/certificate/whatever is stored in the user account profile....

      But what prevents Administrator from changing your password, and signing into your account to read your files? I suppose this leaves a trail... but still.

    12. Re:win2k by mentin · · Score: 1

      >But what prevents Administrator from changing your password, and signing into your account to read your files? I suppose this leaves a trail... but still.
      It would not work in W2k for domain users, and it would not work in WinXP for local user either. When you reset password of another user in XP, you are warned that the user will lose access to her sertificates, EFS files, etc.
      And this is actually true, since sertificates are encripted with user's password. When you change password in regular way, sertificates are re-encripted. When resetting, it can't be done (no old password is available).

      --
      MSDOS: 20+ years without remote hole in the default install
    13. Re:win2k by TheCabal · · Score: 4, Informative

      Can anyone fill us in on this windows folder/file encryption? How does it work? What does it use as a key, and how is that key accessed?
      I read it uses AES

      I would assume a key/certificate/whatever is stored in the user account profile....

      But what prevents Administrator from changing your password, and signing into your account to read your files? I suppose this leaves a trail... but still.


      The certificate is stored on the user's workstation. If they use multiple workstations, the user must carry their certificate with them. EFS works using 128-bit DESX. A symmetrical recovery key is generated and is encrypted using the Recovery Agent(s) public key, so that those people designated as people who can decrypt other's files can do so.

      For those who still can't understand this, and think that a cracked account/BO Trojan and other absurd conditions are going to make a difference, the answer is Very Little. An agent still needs the certificate installed on the workstation that he/she is going to be recovering files from. Microsoft even recommends that a certificate be generated, the public key added as a recovery agent, and the certificate kept on removable media and stored securely until it is needed. They also recommend storing the certificate as a PKCS#12 cert since you can lock the private key with a password.

      An Admin can't just change your password and sign in as you, unless he can do it at your workstation or wherever you have your certificate installed. He may be a designated Recovery Agent, though in which he can look at your files anyway. But this has always been the case on windows network, but even on Unix/Linux nobody can stop root from reading a file, right?

    14. Re:win2k by Anonymous Coward · · Score: 0

      The basic idea is that Windows EFS is designed for corporate use (where the corporation owns the data and the administrator can access it after you've been shitcanned).

      Whereas freenix solutions are designed for paranoids or criminals hiding in their basement (so there's no backdoors).

    15. Re:win2k by Anonymous Coward · · Score: 0

      Hmm, did I just farted?

    16. Re:win2k by Anonymous Coward · · Score: 0

      Sounds klunky. I guess it does the job the best it can with the least amount of real thought. So basicaly the way to crcumvent these is to snag the cert. Were do the files become decypted at the client side or server side.

      Based of the description what does this offer to the security of your files that didn't exist by simply using pgp on your files and storing them on the server. It is just my view but the way they did it seems more like a hack more than anything.
      I'm guessing we can be seeing this type of kludgeware in the next version of Outlook.

    17. Re:win2k by karlm · · Score: 1
      but even on Unix/Linux nobody can stop root from reading a file, right?


      No, most of the loopback and NFS file server solutions require root to "get medieval on your ass" and extract the key from between your ears in order to read the files, or even mount the filesystem.


      I agree that key recovery is a Good Thing(tm). Most data important enough to be encrypted is important enough to justify strong recovery methods.


      I'd really like to see Shoup's secret sharing algorythm used for key recovery. Shoup figured out a way to split up a secret RSA key into m secret shares such that people controlling n of the shares must cooperate in order do normal RSA decryption in a special manner. The really neat thing is that nobody learns anything about anyoune else's secret share, even after the distributed computation is performed. Each participant creates a special sub-decryption based on their secret share, as well as a zero-knowledge proof of the validity of their sub-decryption (so you can tell if somebody is trying to "poison" the calculation with a fake sub-decryption). Once n sub-decrptions are available, anyone with acess to them can combine them in a special way. The math is a bit involved, but given only Shoup's paper, it only took two of us working for three nights to code it up as a homework assignment in Prof. Rivest's network security class. Both m and n are arbitrarily set when the secret shares are geberated.


      Given Shoup's scheme, you could make it so that 5 of your 20 admins would need to consent/be bought/get hacked in order to recover your key. The best part is that the end result is normal everyday RSA decryption, so absolutely no changes need to be made on the encrypting end. (IIRC, the encryption exponent needs to be a prime number larger than m, or 2m or some such, but this is not a problem for most implementations. 3, 7, 17, and 2^16+1 are the most common public exponents for RSA, as these exponents result in pretty fast exponentiation. Sometimes the encryption exponent is hard coded into the software.)

      --
      Copyright Violation:"theft, piracy"::Anti-Trust Violation:"thermonuclear price terrorism"<-Overly dramatic language.
  2. FreeBSD & NFS by stygian · · Score: 5, Insightful

    It's been a long time since I set it up under FreeBSD...but, as I recall, it had a very easy-to-setup system for creating an encrypted filesystem. I just 'cattach' it when I boot the machine...and I'm the only user than can look at the contents. It's really quite nifty. And I've never been able to find a good Linux equivalent.

    1. Re:FreeBSD & NFS by stygian · · Score: 5, Informative

      csfd - that's what it was. The Cryptographic File System.... The readme for the FreeBSD port is:

      This is CFS, Matt Blaze's Cryptographic File System. It provides transparent encryption and decryption of selected directory trees. It is implemented as a user-level NFS server and thus does not require any kernel modifications.

      ftp://research.att.com/dist/mab/cfs.ps

    2. Re:FreeBSD & NFS by Marcus+Brody · · Score: 3, Informative

      I've never been able to find a good Linux equivalent.

      Try SuSE. Because they are a European distro (ie no problems with US export controls), and also aimed at secure/server market (unlike mandrake), they have Very Good built in security measures. It is really very trivial to set up a crypto file system. You really should give it a go. See this for some breif details.
      Only problem is SuSE dont make iso's downloadable, so you might need to buy (gasp!) a copy. Money well worth spent though.

    3. Re:FreeBSD & NFS by madGenius · · Score: 1

      I think you should be pointing to this link this

      --
      Physicists are said to stand on one another's shoulders while programmers stand on one another's toes.
    4. Re:FreeBSD & NFS by Anonymous Coward · · Score: 0

      Crypto filesystem is trivial? Sounds like Sales monkey trying to drum up business. How about this. Before you start spouting out nonsense have some insight on what you are saying. Also Mandrake as a secure solution? Only secure solution I would recommend would be OpenBSD, period.

    5. Re:FreeBSD & NFS by Marcus+Brody · · Score: 1

      Sounds like Sales monkey trying to drum up business

      Erm... yes I know my mum allways told me not to talk to trolls..... But yes, the link I gave was obvious sales shite, but I have used the crypto fs (hide my pr0n stash from mum ;-) and it is trivial.

      Also if you had actually READ my post, I was implying that mandrake is NOT secure. The point i was trying to make is that American distros are inherintly not great with crypto (due to export restrictions), which really leaves (from the top 5) mandrake and SuSE (or OpenBSD, which is canadian). As I said, mandrake is aimed at the desktop market and is hence not very secure.

    6. Re:FreeBSD & NFS by Anonymous Coward · · Score: 0

      As a userspace nfsd, it should be pretty simple to port to any POSIX OS, including Linux.

    7. Re:FreeBSD & NFS by mmol_6453 · · Score: 1

      Isn't NFS horribly insecure?

      All it takes is for one idiot user to pipe the NFS data stream over an IP tunnel to home, and you've got your safely encrypted data streaming over the internet, where things like Carnivore and ISPs who log and store traffic can do whatever they want with it.

      Haven't heard it mentioned, but I wouldn't find it unlikely if the carnivore virus would cause data to be echoed to an FBI listening server.

      --
      What's this Submit thingy do?
    8. Re:FreeBSD & NFS by bertvl · · Score: 1

      LinuxISO has ISO images of many linux distros, including SuSE 7.1

  3. loop-AES by Sami · · Score: 4, Informative

    Have you tried the loop-AES patch? It isn't exactly an encrypted FS, but you can create encrypted virtual drives with it.

    1. Re:loop-AES by Sami · · Score: 1

      Oh well, I cannot reach the site at the moment, but at least you can find an announcement for the latest release from LWN.

  4. Stuck in Windows? Bestcrypt works okay... by Bonker · · Score: 4, Informative

    It's a fairly decent encrypted filesystem implementation. I'm certain is has it downsides, but besides being non-free, I haven't found any others.

    BC allows you to create encrypted volumes up to the max size of your harddrive, and encrypts anything therein with your choice of encryption schemas. It also comes with a 'Wipe' command that will allow you to delete a file or clean a drive with a 7-stage delete process.

    --
    The next Slashdot story will be ready soon, but subscribers can beat the rush and slashdot the links early!
    1. Re:Stuck in Windows? Bestcrypt works okay... by Ashran · · Score: 1

      he asking for a linux solution ..
      For windows there is something coming along with PGP that allows you the creating of encrypted drives

      --

      Before you email me, remember: "There is no god!"
    2. Re:Stuck in Windows? Bestcrypt works okay... by nick13 · · Score: 1

      BestCrypt is available for Windows and Unix. In fact, the source for the Linux tools is available (not GPL). And as long as your encrypted volumes are in a format all platforms can read (i.e., FAT), BestCrypt is a wonderfully implemented cross-platfrom solution.

      niko

    3. Re:Stuck in Windows? Bestcrypt works okay... by Vairon · · Score: 1

      It works for linux too. There's a free trial download for both Windows and Linux. More details at: http://www.jetico.com/linux.html

    4. Re:Stuck in Windows? Bestcrypt works okay... by OSgod · · Score: 1

      Who in their right mind would leave valuable data on a FAT partition? Yeck.

    5. Re:Stuck in Windows? Bestcrypt works okay... by Anonymous Coward · · Score: 0

      Bestcrypt also includes routines that use low-level keyboard reading routines to (hopefully) circumvent Magic Lantern and suchlike software based keypress sniffers.

    6. Re:Stuck in Windows? Bestcrypt works okay... by dasunt · · Score: 2


      E4M is a free (beer) windows solution, that is also open source. It works by making encrypted volumns that can be mounted as virtual drives under win32.


      D'oh! Checked the link. Guess the project died. Well, maybe you can luck out and find a mirror.

    7. Re:Stuck in Windows? Bestcrypt works okay... by Troed · · Score: 1
      DAMN!


      Oh well, I've been using their product happily in both Win95 and now Win2K for a while .. it's really sweet ..

  5. Here is how to do it by Anonymous Coward · · Score: 0

    Right click on the folder, click properties, click "Encrypt this folder." Any other way is a waste of time.

    1. Re:Here is how to do it by EnderWiggnz · · Score: 4, Insightful

      good thing that you have the ultra-secure, no government backdoors UBER-MS encryption there, right...

      sigh...

      "its encrypted because we say it is, and trust us on that"

      --
      ... hi bingo ...
    2. Re:Here is how to do it by LordBeaver · · Score: 1

      at least you dont need a phd in crytography to use it. lets face it if people want in - they'll get in no matter what os you are running

    3. Re:Here is how to do it by TheCabal · · Score: 1

      "its encrypted because we say it is, and trust us on that"

      Isn't that the case with any encryption scheme? The only way you'll ever be sure is if you write your own.

    4. Re:Here is how to do it by Anonymous Coward · · Score: 0

      bullshit

    5. Re:Here is how to do it by Anonymous Coward · · Score: 1, Interesting

      ok. heres a whitepaper on cracking EFS :
      http://security-archive.merton.ox.ac.uk/bugtraq- 19 9907/0213.html

    6. Re:Here is how to do it by innocent_white_lamb · · Score: 2, Insightful

      The only way you'll ever be sure is if you write your own

      Or get the source code for an existing cryptographic application and audit it. A good programmer and a good mathematician working together could probably produce a reasonably trustworthy audit of the cryptographic functions in a given application.

      Of course, this requires that the source code be availble for inspection and that the code can be compiled for actual use in the production environment. It's pointless to audit source code that is then carried off and you are subsequently handed a binary-only application "supposedly" based on the audited code.

      --
      If you're a zombie and you know it, bite your friend!
    7. Re:Here is how to do it by Omnifarious · · Score: 2

      So, if you really think MS has all kinds of back-doors in it, why not actually go crack it? Go prove it, make a huge name for yourself, and expose MS.

      Given the NSA's history with various companies (Crypto AG anyone?) and their encryption software, I think the opposite proof is required. All proprietary products must be assumed to have back doors unless they can somehow prove otherwise. BTW, good luck with that proof without releasing source code.

      Also, Microsoft has a pretty bad history (their VPN software for example) of making things that really are secure in the cryptography arena. So again, I think the burden of proof is the other way.

      All Microsoft software is only as secure as it absolutely has to be in order to sell it, and history (and knowing the average buyer) shows that's not very secure. Trusting Microsoft with security is like trusting an unregulated S&L with your money.

    8. Re:Here is how to do it by gazbo · · Score: 1

      If you're willing to sieve through the source code, and then try to prove the security of the algorithms, why not make sure that the programming half of the team speaks assembly? Disassemble the binary et voila!

      Of course, even if you establish there's no back doors, it's still a far cry from proving the algorithm is secure. Most encryption security is inherently entwined with the whole P/NP problem - maybe you really meant a good programmer and a *fucking* good mathematician ;-)

      I previewed that and in both uses I had typed 'algorythms' - what the hell is wrong with me today?

    9. Re:Here is how to do it by dup_account · · Score: 1

      The EULA prohibits reverse engineering (diassembling the binary)

    10. Re:Here is how to do it by Anonymous Coward · · Score: 0

      +1 Insightful - Anything posted on /. that goes against windows.

      +1 parent post (Insightful)!

    11. Re:Here is how to do it by sheldon · · Score: 2

      Or how about a better link, one that explains the issue and how and why it may not be a problem:

      http://www.safenetworks.com/Windows/syskey2.html

      Basically the way they "hacked" EFS was to reset the user password, and Microsoft already has a mechanism to prevent this, if needed.

  6. BestCrypt by Anonymous Coward · · Score: 0

    Use BestCrypt from Jetico. It works on Windows OSes as well.

    1. Re:BestCrypt by NeoTron · · Score: 1

      Yes but Bestcrypt is not compiling against my 2.4.12+ kernels , and I wish they would sort that out :)

    2. Re:BestCrypt by mrplow · · Score: 1

      Bestcrypt 0.8-8 works for me since 2.4.12 (currently running 2.4.16-pre1 and no problems whatsoever).

    3. Re:BestCrypt by NeoTron · · Score: 1

      OMFG!!

      Hmm I'm now downloading the latest clean source of kernel 2.4.16, and will try to recompile it - I was geting compilation errors - perhaps because I'm using Mandrake 8.1 kernel packages? They seem to include a lot of guff that's not in the Linus tree...

      Thanks for telling me that :)

    4. Re:BestCrypt by nick13 · · Score: 1

      Modules compile and work wonderfully for me with Linux 2.4.14 (using the virgin source). I can provide you with deb packages, if you like. ;) nick at infowks dot com if you're interested.

      niko

    5. Re:BestCrypt by NeoTron · · Score: 1

      Doh! Nope - still getting the same crummy compilation error - argh! :(

    6. Re:BestCrypt by xanadu-xtroot.com · · Score: 1

      Just to add, I'm using Linus' 2.4.13 and I just compiled BestCrypt 0.8-9 just fine. I haven't installed it yet, so I can't yet verify that it actually works. But it at least compiled fine.

      I'm using gcc-2.96-0.68mdk with glibc-2.2.4-12mdk, if that makes any difference

      --
      I'm not a prophet or a stone-age man,
      I'm just a mortal with potential of a super man.
    7. Re:BestCrypt by NeoTron · · Score: 1

      :) ok I'll try to update to those packages... perhaps it's because I'm using slightly older versions than the ones you're using... thanks for the info :)

    8. Re:BestCrypt by Anonymous Coward · · Score: 0

      also, make sure /usr/src/linux is a symbolic link to the right kernel source tree. this is the only reason bestcrypt will ever not compile for me.

  7. Reiser4 by jeffphil · · Score: 5, Informative

    If you can wait until September 2002, ReiserFS v4 will have an encryption plugin builtin.

    1. Re:Reiser4 by glitch! · · Score: 1

      Cool. It will only spend CPU cycles encrypting when the data is actually going to the disk. I guess the tradeoff is that file data in memory is likely to be plaintext, though.

      I have not seen the idea mentioned here, but it seems that if one uses encrypted filesystems, there is not (as much) worry about choosing who does the backups.

      --
      A dingo ate my sig...
    2. Re:Reiser4 by LoonXTall · · Score: 1

      "I guess the tradeoff is that file data in memory is likely to be plaintext, though."

      Obviously. If the ciphertext didn't need to be decrypted at some point, it wouldn't be ciphertext.... I think decrypted data in RAM is acceptable, because I don't want to pay the cost of a CPU with a 4Kb block decrypt register and dedicated Rijndael hardware.

      --

      ~~~LXT~~~
      Life is like a computer program: anything that can't happen, will.

  8. Encryption is fine. Decryption doesn't work by Karma+50 · · Score: 3, Funny

    ÖcéqêK8N& #9561;fö,á>c GîIk&#85 96;:á9fYé7$¼F~ ÿeCCLìM& #9616;ÿ4-
    /ñlöúi;`&#957 1;r÷\^"Ç SHNHÄN$RiDeb"&# 9492;3@É-'&#983 5;úïfM¼fz&#978 8;
    ÷¥ä=jN¥ká&#9567 ;êå0#0_R'&#955 3;lf'\@& #9524;te1q :Æ¥ôä&# 9580;Eüb#
    .¥c&#9688 ;Æ>ÿ"w&#9562 ;å+íÅ ï8XRO"# )Wÿ'fò^òY&#9571 ;Kñ2">[.0&#9 786;0Z
    ÿ!(VIi±(Av#;d}x övëëúóî|KÖ9&# 9792;9Jq]@2Oü-ö @[WcáÅU3 j

    --
    http://www.thehungersite.com
    1. Re:Encryption is fine. Decryption doesn't work by 42forty-two42 · · Score: 0, Redundant

      1;r÷\^"& #9658;Öcéq
      .¥c&#9688 ; ;Æ>ÿ"w&#9562 ; ;å+íÅ ï8XR2OüáÅU 3 j -+íÅ ï

    2. Re:Encryption is fine. Decryption doesn't work by rjw57 · · Score: 3, Funny

      There is always someone who'll find a way to get Mr. Goatse past the moderators....

      --
      Rich
    3. Re:Encryption is fine. Decryption doesn't work by Anonymous Coward · · Score: 0

      That's some funny shite... Don't mod as offtopic. The Meta-Modders'll getcha.

    4. Re:Encryption is fine. Decryption doesn't work by zCyl · · Score: 2

      Uhm, granted, that post IS funny, but how the hell did the lameness filter not flag THAT?

    5. Re:Encryption is fine. Decryption doesn't work by Anonymous Coward · · Score: 0

      I've no idea. I didn't need to doctor the post at all. Cut-Paste-Preview-Submit.

    6. Re:Encryption is fine. Decryption doesn't work by Anonymous Coward · · Score: 0

      ÖcéqêK8N& #9561;fö,á>c GîIkU 96;:á9fYé7$¼F~ ÿeCCLìM& #9616;ÿ4-
      /ñl öúi;` 1;r÷\^"Ç SHNHÄN$RiDeb"&# 9492;3@É-'&#983 ; 5;úïfM¼fz&#978 ; 8;
      ÷¥ä=jN¥ká&#9567 ; ;êå0#0_R'&#955 ; 3;lf'\@& #9524;te1q :Æ¥ôä&# 9580;Eüb#
      .¥c&#9688 ; ;Æ>ÿ"w&#9562 ; ;å+íÅ ï8XRO"# )Wÿ'fò^òY&#9571 ; ;Kñ2">[.0 786;0Z
      ÿ!(VIi±(Av#;d}x övëëúóî|KÖ9&# 9792;9Jq]@2Oü-ö @[WcáÅU 3 j

    7. Re:Encryption is fine. Decryption doesn't work by mmol_6453 · · Score: 1

      The lameness filter has universal decryption software builtin.

      --
      What's this Submit thingy do?
  9. SuSE does this out of the box... by pwagland · · Score: 5, Informative
    I am not sure about the other distributions, but as of SuSE 7.2, they do this out of the box. The support was improved in 7.3.

    Note that this filesystem based encryption, not user based. I.e. you must enter a password to mount the filesystem, but after that it acts as a normal filesystem (but slower due to the aforementioned encryption).

    The way that SuSE do it is to have an encrypted block device, so that you can throw anything you want on top of it. Typically this would be a filesytem ;-)

    From the SuSE webpage:

    * A highlight of SuSE Linux security technology: the so-called "crypto file system". Secret or sensitive data is encrypted on your own PC. This method is so safe that even if your notebook ist stolen, nobody, absolutely nobody (!) has even the slightest chance of decrypting your data. In addition, the crypto file system is so smart that the thief will not even notice that encrypted data exists.
    1. Re:SuSE does this out of the box... by MKalus · · Score: 5, Informative

      Actually I am using this activly on my Notebook and I haven't really seen any performance degredation (It's a PII 366). The nice thing about it is: It completly prevents you from booting the box at all so the security on the notebook is greatly enhanced:

      - Login Bios Password (Yeah, no security there I know)
      - crypto FS
      - OS Security

      Now the two weak links are the BIOS password as well as the OS Security (just boot from CDROM and on you go), but everything on the /data/ partition is encrypted and the parition is invisible if you boot from a boot disk.

      Really neat.

      Michael

      --
      If you want to e-mail me, use my PGP Key.
    2. Re:SuSE does this out of the box... by grytpype · · Score: 2

      That's interesting... looking at that link, it appears that SuSE has a kernel module for doing Twofish encryption. I wonder if the source is available and can be ported to other distros...

      --

      - Have a picture

    3. Re:SuSE does this out of the box... by pwagland · · Score: 5, Interesting
      Indeed the patch is available.

      Also, you can get all of the patches that SuSE use on their kernel, not only this one. Please note that this link is

      1. A mirror of the official SuSE site, and
      2. The SuSE development kernel. I.e. this kernel is not guaranteed for production use!
      3. The production kernel source is here.
    4. Re:SuSE does this out of the box... by Drone-X · · Score: 4, Insightful
      I take it that if you want to play really safe you'd have to encrypt your swap partition too, after all, any file you recently opened may get swapped to disk.

      It would be convinient if you could have multiple entries in fstab share the same password, for now a little shell script will do (also because Aurora doesn't support text input yet).

    5. Re:SuSE does this out of the box... by Anonymous Coward · · Score: 0

      Depending on what you have encrypted the system could still boot up, example would be to just encrypt your /home and /var directorys.

    6. Re:SuSE does this out of the box... by MKalus · · Score: 1

      I would say that's a yes, right now though it's only the data directory.....

      Michael

      --
      If you want to e-mail me, use my PGP Key.
    7. Re:SuSE does this out of the box... by MKalus · · Score: 1

      I am aware of that, the only part encrypted right now on my system is the data partition, the system CAN boot without that, but all the data is encrypted.

      Michael

      --
      If you want to e-mail me, use my PGP Key.
    8. Re:SuSE does this out of the box... by Danyel · · Score: 1

      You can do this with a loopback device on any version of linux with losetup.

      LOSETUP(8) MAINTENANCE COMMANDS LOSETUP(8)

      NAME
      losetup - set up and control loop devices

      SYNOPSIS
      losetup [ -e encryption ] [ -o offset ] [ -p num ] loop_device file
      losetup [ -d ] loop_device

      DESCRIPTION
      losetup is used to associate loop devices with regular files or block devices, to detach loop devices and to
      query the status of a loop device. If only the loop_device argument is given, the status of the corresponding
      loop device is shown.

      OPTIONS
      --delete, --detach, -d
      detach the file or device associated with the specified loop device.

      --encryption, -e encryption
      enable data encryption. The following keywords are recognized:

    9. Re:SuSE does this out of the box... by Anonymous Coward · · Score: 1, Informative

      Some laptops (such as IBM's) have a more secure BIOS password system that can't just be jumpered away. If you forget the password, you have to replace the systemboard.

    10. Re:SuSE does this out of the box... by Maxthemax2000 · · Score: 0

      But the question is how slow is the fs

      --
      No Sig
    11. Re:SuSE does this out of the box... by hyyx · · Score: 1

      Some laptops (such as IBM's) have a more secure BIOS password system that can't just be jumpered away. If you forget the password, you have to replace the systemboard.

      Actually, there is a default password that always works with IBM laptops so that replacement of the systemboard never becomes necessary. I just cannot tell you this default password...

  10. SuSE got it since 7.2 by Anonymous Coward · · Score: 0

    SuSE 7.2 and 7.3 has support for a twofish encrypted fs. You can even set it up in the graphical installer during installation. Works great!

  11. XOR encryption is supported out of the box... by grytpype · · Score: 4, Informative

    ... take a look at "man losetup", which has a good example of setting up an XOR encrypted loopback filesystem. XOR is pretty crappy encryption however.

    --

    - Have a picture

    1. Re:XOR encryption is supported out of the box... by Anonymous Coward · · Score: 0

      "Pretty crappy"? How about absolutely worthless. Dont do this, no security is better than the illusion of security.

    2. Re:XOR encryption is supported out of the box... by __aawsxp7741 · · Score: 1
      Well, if your key is long enough...


      However, remembering a 4GB key might be a little difficult, and not really that much easier than just remembering the data.

    3. Re:XOR encryption is supported out of the box... by Wumpus · · Score: 2, Informative

      Don't do this.

      cat /dev/loop0 is likely to produce the key in the first page or so of output, since the plaintext is likely to have long stretches of 0 someplace. Remember, K xor 0 = K.

    4. Re:XOR encryption is supported out of the box... by fialar · · Score: 1

      > Have a picture of Queen Victoria

      No thanks! I'm trying to give them up!

      XOR encrypted loopback? LOL.. that'll get solved in 10 seconds flat on any machine. :)

      Here, play this record of an old 1970's mainframe while I encrypt your files for you. :)

      Ftang! Ying tong iddle I po!

      -Fialar

    5. Re:XOR encryption is supported out of the box... by camh · · Score: 1

      XOR is the strongest encryption available - completely uncrackable. You just have to use it right. Its called a One Time Pad (OTP). Go look it up.

    6. Re:XOR encryption is supported out of the box... by Shanep · · Score: 1

      If anyone thinks simple XOR is a magic bullet, they might want to try this...

      XOR encrypt a raw audio file (no encoding, just a raw stream) with /dev/urandom and then listen to the encrypted file as an audio file...

      You will hear the original audio file in all its glory along with perhaps 50% noise added!

      XOR can be OK with perhaps a text file and a OTP, however any zeroes in the OTP will result in plain text at that byte in the output file. I'd preffer a OTP along with some other data mangling scheme.

      --
      War crimes, torture, lies, illegal spying... Would someone give Bush a blowjob, already, so he can be impeached?
  12. I used it on Suse by kuiken · · Score: 1

    on SuSE crypto FS is an option during installation, so you might want to check this it is writen for suse but there is some usefull info in there for all distros.

    --

    42
  13. Deniability by Tet · · Score: 5, Informative

    Encrypted filesystems are useless without deniability. Rubberhose gives you that: http://www.rubberhose.org

    --
    "The invisible and the non-existent look very much alike." -- Delos B. McKown
    1. Re:Deniability by andrew+cooke · · Score: 1

      While rubberhose looks like an excellent piece of work, it's not true that encrypted file systems are useless without deniability. Encrypted file systems are often used commercially so that if the hardware is stolen commerical secrets are not made public. In such a situation it's unlikely that the user will be tortured to reveal the password.... (for example, I work at home, and all my source and email is on encrypted disks - my employers understand that I will give up the password at the slightest hint of danger, but still want encryption).

      --
      http://www.acooke.org
    2. Re:Deniability by Syberghost · · Score: 4, Insightful

      Rubberhose doesn't give you deniability.

      The presence of Rubberhose software and a huge segment of random noise on the disk is going to be enough to convince a court that you have a Rubberhose partition.

      The suggested "create 1GB of noise and then put two partitions in it, and just say you've got one" isn't going to work either. The court is gonna say "oh, you've got 1GB of noise according to our expert, but only a 300MB partition with nothing incriminating on it? Yeah, right, buddy; gimme the password for the other 700MB partition or you can rot in jail on contempt".

      Even a couple megs of "unused" space is going to be taken as a sign you've got a small partition hidden, if you've got Rubberhose software on the system to access it.

      Steganography only works when the carrier files have utility beyond that of the hypothetical encrypted information.

    3. Re:Deniability by Syberghost · · Score: 3, Funny

      I forgot to add, which do you think a judge is more likely to believe:

      1) There's an encrypted partition, but I forgot the password.

      2) There's software for accessing steganized encrypted partitions, with documentation that recommends creating a large chunk of noise to hide it in, and there's a large chunk of noise, but there's no partition, I just keep random noise on my 2GB drive and only use this 1GB partition, the rest is just where I store the random noise, honest.

    4. Re:Deniability by homer_ca · · Score: 1

      It's not that easy. See these quotes from the guide.

      "You can only safely write to the diskette or other data storage device with Rubberhose if you know all the passphrases. If you try to write to the disk without first decrypting the entire disk, you risk overwriting information stored in some other encrypted portion."

      "it breaks up the pieces of the 400MB encrypted portion into tiny pieces and scatters them across the entire 1GB drive. This is done in a random manner, so the bits of data can not be tracked and re-assembled by an adversary. When you decrypt that 400MB section, it will look as though it is actually 1GB in size, with 600MB free space. This structure is how Rubberhose hides the existence of data in the remaining portion of the disk."

    5. Re:Deniability by Syberghost · · Score: 2

      When you decrypt that 400MB section, it will look as though it is actually 1GB in size, with 600MB free space.

      Yes, and the judge's expert, who will have read the documentation including the guide, will say "if you only wanted to use 400MB of your disk and didn't have anything incriminating to hide, why would you be using a program designed to do this kind of hiding in the first place."

      In fact, as they imply in the discussion on physical coercion, not being able to demonstrate usage of all 100% of the space may get you into more trouble.

      The partition "looks like" 1GB, but the fact that's only got 400MB of data is suspicious.

      And what happens if the court's expert writes out 600MB of data to "fill" the partition? You better be a pretty good actor, or he'll see in your face that he's gonna overwrite your data. Hope it wasn't important data. It's in his best interest to wipe out YOUR copy and keep his copies. You'll never get them back.

      So it's a little deniability for unimportant data, but the court isn't gonna buy that you installed this stuff to protect unimportant data.

    6. Re:Deniability by Ian+Bicking · · Score: 2
      The judge is very likely to believe: I am not required to give this information by way of my fifth amendment rights. That implies you've got something to hide, and I assume the jury can take that into account, but they can't force you to give the key. All of this assuming, of course, that you are in the US and not the UK.

      This article comes to the conclusion:

      {72} Cryptography may provide a technical fix for Supreme Court decisions allowing the invasion of one's private papers. However, the effectiveness of that fix will depend on whether the Court holds that use immunity from the compulsory production of a cryptographic key extends to the incriminating documents decrypted with the key. Logic suggests that the Court should so hold.
      But that means nothing compared to actual precendence, of which I am not aware, 'cause I don't really keep up with this stuff. I assume it's protected, as the recent case against that mobster was borderline and it wasn't a question of whether the guy would be forced to give his password, but what to do once it had been aquired.
    7. Re:Deniability by Syberghost · · Score: 3, Informative

      But that means nothing compared to actual precendence, of which I am not aware, 'cause I don't really keep up with this stuff. I assume it's protected, as the recent case against that mobster was borderline and it wasn't a question of whether the guy would be forced to give his password, but what to do once it had been aquired.

      There's a great analysis on the Rubberhose web site, talking about the legal precedents and arguments currently existing.

      The argument that Fifth Amendment protection doesn't extend to things you've already said, such as information on a hard drive already, is scary, even if you don't find it compelling. Courts don't always rule in accordance with a particular interpretation of the law, much less in accordance with logic.

    8. Re:Deniability by friscolr · · Score: 4, Funny
      which do you think a judge is more likely to believe

      use OutGuess and store your data across your porn jpegs! I've been collecting porn over the past 8 years for just this purpose!!!

      the judge is *most* likely to believe:
      "Your Honour, all those files are of naked men and women getting it on. i have 40+ gigs of it for variety!"

      like you said...
      Steganography only works when the carrier files have utility beyond that of the hypothetical encrypted information.

    9. Re:Deniability by Anonymous Coward · · Score: 0

      I'de rather get six months on contempt than 20-life for distributing medical cannabis (which is what the feds would give me, even though my state govt. says it's legal.)

      And I'd much rather get six months myself than see 2,000 people who did nothing wrong and trusted me to protect their confidential data get thrown in jail.

    10. Re:Deniability by Anonymous Coward · · Score: 0

      A tip - it seems that it would be important to hide information you'd be embarassed to have but which is not criminal with one passphrase (soft porn, whatever), and the stuff you're scared the authorities will discover (records of 3rd world human rights abuses, for instance) with another one.

      That way you have a plausible explanation for why you encrypted the stuff which won't get you into legal trouble.

    11. Re:Deniability by Anonymous Coward · · Score: 0
      So it's a little deniability for unimportant data, but the court isn't gonna buy that you installed this stuff to protect unimportant data.

      To be absoluteley safe, you should keep a few hundred megabytes of gay porn on your encrypted drive. It's legal, plus it's understandable why you would want it encrypted and make such a fuss about giving out your password.

    12. Re:Deniability by Unknown+Bovine+Group · · Score: 1

      The partition "looks like" 1GB, but the fact that's only got 400MB of data is suspicious.

      This argument doesn't hold water. Are you saying that having a drive 40% full is somehow suspicious?

      And what happens if the court's expert writes out 600MB of data to "fill" the partition? You better be a pretty good actor, or he'll see in your face that he's gonna overwrite your data. Hope it wasn't important data. It's in his best interest to wipe out YOUR copy and keep his copies. You'll never get them back.

      Now THIS is true; you lose the data. But if you have the choice of losing your data or getting 15 years of assrape in federal prison, which would you take?

      There is complete deniability. There are not ONLY 2 password levels allowed with rubberhose, there are many. So you have 400 megs of innocent stuff, then a password that reveals an additional 400 megs of nasty porn when they put the screws to you. Of course they know you're using rubberhose so you eventually give up the password to the 100 megs of anarchy and bomb making literature..... all the while your meg or 2 of accounting for you drug dealings is safe.

      --
      m00.
    13. Re:Deniability by Syberghost · · Score: 2

      There is complete deniability.

      If by complete deniability you mean "the moral satisfaction of knowing they can't prove you're lying", then yes, it's complete deniability.

      If you mean "they are likely to believe me and let me out of jail or stop hitting me with this rubber hose", then no, there's not complete deniability.

      Of course they know you're using rubberhose so you eventually give up the password to the 100 megs of anarchy and bomb making literature..... all the while your meg or 2 of accounting for you drug dealings is safe.

      Except now they have proof you were lying, and they haven't found what they came for.

      Far better would be a password that shows them the 400 MB of innocent stuff and IMMEDIATELY deletes all the rest. That would give you plausible deniability.

    14. Re:Deniability by Unknown+Bovine+Group · · Score: 1

      Far better would be a password that shows them the 400 MB of innocent stuff and IMMEDIATELY deletes all the rest. That would give you plausible deniability.


      Isn't that what APPEARS to happen when you give them the first password? There's 400 megs of data and 600 of free space.... and if they believe you, you go home and sue them for harassement.

      The whole concept of deniability refers to the fact that you can deny there are any further levels of encrypted data. It has nothing to do with convincing authorities or getting away with thing in court.

      If they can torture you into giving up the passwords they can just torture you into confessing....

      --
      m00.
    15. Re:Deniability by Anonymous Coward · · Score: 0

      That's why you should have a password such as "I was the grassy knoll rifleman who shot JFK."

    16. Re:Deniability by Anonymous Coward · · Score: 0

      Obviously you don't live in the U.S. and are not a lawyer, otherwise you would know that in the U.S., you cannot be forced to reveal any passwords you have that may ultimately incriminate yourself, as the 5th Amendment to the Constitution of the United States mandates.

      Unfortunately, in the U.K. they have passed a lot of legislation forcing people to reveal their passwords.

      The worry in the U.S. is that we will follow that path. We certainly seem to be at the crossroads now considering the damage done to our civil liberties as a result of knee-jerk legislative reactions to the Sept. 11 terrorist attacks and draconian executive orders.

      On another note, for those who use MS Windows (and theoretically soon to be a Linux port), as well as an excellent repository of encryption links and information, check out DriveCrypt and ScramDisk at http://www.scramdisk.clara.net/

    17. Re:Deniability by marick · · Score: 1

      Or, if you're like me and use a work-laptop, use outguess to hide your porn inside your mp3 collection.

      "No, VP of Technology, I don't have any porn on this laptop, just mp3s."

    18. Re:Deniability by Taliban+Lecher · · Score: 1

      > I forgot to add, which do you think a judge is more likely to believe:

      [...]

      3) You saw the uptime was >200 days, I dont remembert the password.
      If You guys find it, lemme know!

      rupperhose the new r-tool unlike rwho, rsh etc it doesnt work remotely, it just forges uptime to "more upper"

    19. Re:Deniability by Malcontent · · Score: 2

      "If they can torture you into giving up the passwords they can just torture you into confessing...."

      This is an important point. If they don't believe you then you can get tortured no matter what. In the US they will simply ship you to israel where torture is legal and then the israeli govt can tell the US what you confessed to dusring your rape with an electrical dildo.

      --

      War is necrophilia.

    20. Re:Deniability by mmol_6453 · · Score: 2, Funny

      The question is, will he settle in return for a copy of your collection?

      --
      What's this Submit thingy do?
    21. Re:Deniability by Anonymous Coward · · Score: 0

      The discovery of gay porn on their harddrive is only a problem for married heterosexuals or fundamentalist ministers. For anybody else, nobody gives a damn. It's the 21st century.

    22. Re:Deniability by Syberghost · · Score: 2

      That's why you should have a password such as "I was the grassy knoll rifleman who shot JFK."

      And then they give you immunity from anything you say in the passphrase, which the court will NOT extend to what's in the documents revealed by it.

    23. Re:Deniability by Syberghost · · Score: 2

      Obviously you don't live in the U.S. and are not a lawyer, otherwise you would know that in the U.S., you cannot be forced to reveal any passwords you have that may ultimately incriminate yourself, as the 5th Amendment to the Constitution of the United States mandates.

      I live in the US and majored in pre-law. But more importantly, I can READ. You should at the very least pop on over to the Rubberhose web page and read the legal analysis there.

      Fifth Amendment protection does NOT extend to things you have already uttered. Unless the passphrase itself incriminates you, the 5th amendment does not protect you.

      Further, by extending you transactional immunity for the passphrase, they eliminate your 5th amendment options entirely.

    24. Re:Deniability by benb · · Score: 1

      > Fifth Amendment protection does NOT extend to things you have already uttered.

      uh. how scary.

      Where is the difference between "Give me the passphrase" and "Lead us to the gun with which you murdered your brother."?

      What you say might be the current interpretation in the US, but I certainly can't understand it, and I guess Joe Random can't either.

  14. 50 ways to leave your lover by mAsterdam · · Score: 4, Informative

    ...and at least 10 ways to encrypt your data:
    http://koeln.ccc.de/~drt/crypto/linux-disk.html
    gives them.

    1. Re:50 ways to leave your lover by Anonymous Coward · · Score: 0

      D&*( it! Where's the 50 ways to leave your lover? That's what I was looking for!

  15. loop-AES is the way to go by Anonymous Coward · · Score: 0

    I have to second the suggestion of loop-AES. It's really easy to install and use, and works great. I've got both encrypted FS and encrypted swap going using it.

  16. cryptfs by sdxxx · · Score: 4, Informative
    There is a cryptographic file system you can get for SFS. If you go to the download page, it's called cryptfs. Unfortunately, you have to install SFS first to compile cryptfs.

    Cryptfs is fully functional, though it was indented mostly as a proof of concept. The point is that such file systems are not hard to build, should someone want to maintain one. Here's an undergraduate programming assignment in which the students build a fully-functional cryptographic file system as an NFS loopback server.

  17. More recent CryptoAPI patches can be found at... by NeoTron · · Score: 2, Informative

    ftp://ftp.kernel.org/pub/linux/kernel/people/hvr

    Try that :)

  18. ppdd by Anonymous Coward · · Score: 0

    By far the best fs-encryption I've encountered for Linux so far is ppdd. You can encrypt everything. It's a kernel patch that uses the loopback devices.

    http://linux01.gwdg.de/~alatham/ppdd.html

    1. Re:ppdd by Olmy's+Jart · · Score: 1

      I'm afraid that ppdd is pretty much history. The author is not keeping it up to date with the 2.4 kernels and both loop-aes and linux-api are proving to be just as capable. In particular, loop-aes is capable of encrypting both the root file system and swap, which were major points with ppdd. There were some 2.4 ppdd patches but, AFAIK, they all had some fundamental problems. That's why I abandoned ppdd and switched to loop-aes. From discussions on the mailing lists, I don't think the author of ppdd is going to carry on at this point.

  19. It's Really Pretty Trivial by Lethyos · · Score: 5, Insightful

    The kernel patch you refer to is not outdated. There just is no reason to release new versions. Here's how you patch your kernel with the international patch.

    One level up from your Linux source tree (typically /usr/src), do...

    zcat ~/patch-int-2.4.3.1.gz | patch -p0 -E

    You'll notice a chunk fails. The ONLY problem here is patching the root Makefile. Look at the file /usr/src/linux/Makefile.rej. It shows you what lines failed. You can easily fix this by adding (under the DRIVERS line)

    CRYPTO = crypto/crypto.o

    And changing the line

    SUBDIRS = kernel drivers mm fs net ipc lib

    to...

    SUBDIRS = kernel drivers mm fs net ipc lib crypto

    Now your kernel should be properly patched. Make it mrproper, then configure as needed. Add the proper cyphers (I'm sure you can figure this out). Typically, serpent and blowfish are the best choices. Also, build them as modules so you can harvest a little extra entropy. :) Also, make sure you build the loopback device as a module, and then add crypto support. I assume you know how to load modules

    Now for the easy part. Once you have the kernel modules built and loaded, make sure you have the latest mount tools (including losetup). Pick the device file you want to use as an encrypted file system. For this example, I'm going to use hda3 with 256 bit serpent encryption for shits & giggles.

    losetup --keybits 256 --encryption serpent /dev/loop0 /dev/hda3

    It will prompt you for a pass phrase. Use a PHRASE and REMEMBER this. You cannot change the passphrase of an encrypted fs after you set it. Get it right. Next, format the device /dev/loop0 with your favorite file system (I prefer ReierFS because I've had trouble with ext2 fscking of encrypted file systems -- data loss most notably whenever I mistyped my passphrase). Do something like

    mkreiserfs /dev/loop0

    Now, destroy the loopback device...

    losetup -d /dev/loop0

    And add the following line to your /etc/fstab

    /dev/hda3 /mountpoint reiserfs defaults,loop,auto,encryption=serpent 0 0

    Now, every time you boot or mount that file system, it will ask you for the key length and the pass phrase. And there you go. Encrypted file system. Yea.

    You can see how trivially easy that was and if you had put about half an hour's thought into it, you could have realized that the "outdated" howto hasn't been updated because the process is pretty much unchanged and you would not have wasted our time with yet another linux newbie Ask /. question. But that's just my opinion.

    --
    Why bother.
    1. Re:It's Really Pretty Trivial by grytpype · · Score: 0, Offtopic

      >You can see how trivially easy that was and if you had put about half an hour's thought into it, you could have realized that the "outdated" howto hasn't been updated because the process is pretty much unchanged and you would not have wasted our time with yet another linux newbie Ask /. question. But that's just my opinion.

      Well, that's quite an attitude from someone with a /. ID in the low four-hundred-thousands.

      --

      - Have a picture

    2. Re:It's Really Pretty Trivial by Peter+Dyck · · Score: 2, Insightful
      You can see how trivially easy that was and if you had put about half an hour's thought into it

      Right.

      That kind of attitude will really encourage people in general to use Linux and encryption on a daily basis...

    3. Re:It's Really Pretty Trivial by Anonymous Coward · · Score: 0

      Well, that's quite an attitude from someone with a /. ID in the low four-hundred-thousands.

      Right. It's much cooler to have a lower user number and submit questions to Ask /. that are easily answerable if someone would just RTFM. Besides, I had a lower number, but I sold it at 50 karma points on eBay.

    4. Re:It's Really Pretty Trivial by Anonymous Coward · · Score: 3, Interesting
      You were doing a stellar job there until the uncalled for jabs at the end of that post. Maybe there are other slashdot readers out there that are interested in having an encrypted file system?

      Maybe having an encrypted file system could be part of the install process for upcoming Linux distributions - an easy to use system for encryption in the partitioning stage of the install. Couple that with a runtime tool that can create encrypted partitions after the install, and you immediately have another big plus point over Windows, especially for people in government who have a habit of leaving laptops with top secret material on in taxi cabs.

      In other news, the UK government is going to buy 500,000 copies of Windows XP. As a taxpayer, I disagree with this use of my tax money, and with the close relationship that the current government has with Microsoft. I feel that the best solution for the taxpayers is not being researched in the name of PR and photo opportunities for government ministers. And why does the government need to upgrade their computer system to Windows XP? What is wrong with 2000 - a proven OS now, not a just released one...

    5. Re:It's Really Pretty Trivial by dman123 · · Score: 3, Interesting
      Although I will not be verifying your implementation, your post is well written and seems very informative. Why did you go and blow it at the end??

      I constantly have to defend myself against being called part of a cult that is "drinking the Kool-Aid" and this type of attitude does not help. I am proud to be a geek/nerd, but the moment anyone thinks of me as arrogant or haughty, I feel bad.

      --

      --
      dman123 forever!
      Filtering out the -1s and 0s since 1999.
    6. Re:It's Really Pretty Trivial by Ewan · · Score: 0, Offtopic

      Errm,a low /. ID now equals some sort of coolness factor and allows you to be rude?

      I must be way cool, maybe I should get a badge printed with my number on it? :)

      Ewan

    7. Re:It's Really Pretty Trivial by Ewan · · Score: 1

      SuSE does this now, and at a presentation I saw on it recently by a SuSE guy he specifically mentioned it and demonstrated it.

      I imagine the other distros won't be far behind.

      Ewan

    8. Re:It's Really Pretty Trivial by ishark · · Score: 2

      The kernel patch you refer to is not outdated. There just is no reason to release new versions. Here's how you patch your kernel with the international patch.

      Actually, I remember reading (mailing list? cryptoapi doc? newsgroup?) that the patch-int should NOT be used, because the implementation of several cyphers (twofish comes to mind) is broken.

      As I already wrote in another post, I didn't do extensive testing to compare patch-int and cryptoapi, but I *did* have lost data with patch-int: some files got garbled beyond repair (to quantify, I'd say less than 1% of them). I was using twofish.

      Now I'm using cryptoapi, and I didn't have any trouble (at least not yet).

      Another point: you may have troubles with losetup/mount, depending on the distribution you use. In that case, download util-linux from the kernel site, apply the patches and recompile. I keep two separate copies (called losetup-crypto and (u)mount-crypto) of the utilities.

      I don't think I agree with the the suggestion about reiserfs. ReiserFS has no trouble with fsck simply because it doesn't do fsck... I'd suggest use whatever you want but disable auto-checking or, even better, modify the startup scripts to make sure that the passphrase is good (just try to mount the fs) before attempting a fsck.

    9. Re:It's Really Pretty Trivial by jezzball · · Score: 2, Insightful

      Sure, from someone with a 50k id...

      Young'un :)

      Maybe he just forgot his password on an encrypted file system that he couldn't mount?

      --
      ls: .sig: File not found.
      (A)bort, (R)etry, (I)gnore?
    10. Re:It's Really Pretty Trivial by jnik · · Score: 1

      Sure, from someone with a 50k id...Young'un :)
      *ahem*
      Anyhow, even if the patch applies sorta cleanly, it always helps to look for the latest info. Also learning how to muck with failed patches isn't something that everyone knows. I'm certainly saving Lethyos' post for future reference.

    11. Re:It's Really Pretty Trivial by josecanuc · · Score: 1

      I remember, back in the day...

      When Slashdot was about equally science and Linux/computer stuff.

      It's changed quite a bit, but I still enjoy reading.

      --Joe

    12. Re:It's Really Pretty Trivial by Lethyos · · Score: 3, Informative

      As I already wrote in another post, I didn't do extensive testing to compare patch-int and cryptoapi, but I *did* have lost data with patch-int: some files got garbled beyond repair (to quantify, I'd say less than 1% of them). I was using twofish.

      I had this problem once or twice, but using either serpent or blowfish. It happened after typing a bad passphrase... and e2fsck kicked in and complained about fs errors. Of course, I've gone a little crazy with my set up. I have two hard disks, each encrypted with a different algorithm, that are then interleaved using RAID0. I love it. :) But it's trouble prone.

      Now I'm using cryptoapi, and I didn't have any trouble (at least not yet).

      Got any links or should I just look in standard locations? (Kernel archives, freshmeat?)

      Another point: you may have troubles with losetup/mount, depending on the distribution you use. In that case, download util-linux from the kernel site, apply the patches and recompile. I keep two separate copies (called losetup-crypto and (u)mount-crypto) of the utilities.

      That's one reason I mentioned having the latest utilities. Older versions don't support crypto stuff (obviously). But there's really nothing wrong with making hte latest util-linux package your primary. Why do you keep separate binaries?

      I don't think I agree with the the suggestion about reiserfs. ReiserFS has no trouble with fsck simply because it doesn't do fsck... I'd suggest use whatever you want but disable auto-checking or, even better, modify the startup scripts to make sure that the passphrase is good (just try to mount the fs) before attempting a fsck.

      Well, I suggested Reiser because in light of things not being set up properly, I think it's a little more careful before it goes and tries to replay a journal on a corrupted fs. That may actually be a positive fault here, as giving up early protects your data. In general though, I prefer a journaled fs so I'm boasting some advocacy here. :)

      --
      Why bother.
    13. Re:It's Really Pretty Trivial by hardburn · · Score: 1

      Maybe having an encrypted file system could be part of the install process for upcoming Linux distributions . . .

      The problem is US export laws make it annoying to export strong encryption. With everyone screaming "Terrorism!" like they are right now, this doesn't look like it will be fixed any time soon. SuSe gets away with it because they're German.

      --
      Not a typewriter
    14. Re:It's Really Pretty Trivial by Xenophon+Fenderson, · · Score: 1

      Heh, if that's true, I must be even cooler than you! ;')

      --
      I'm proud of my Northern Tibetian Heritage
    15. Re:It's Really Pretty Trivial by Mongr · · Score: 1

      You lose!

      --
      -=Mongr=-
    16. Re:It's Really Pretty Trivial by doomy · · Score: 1

      I believe the lower ID's have less enthropy, so you might want to invest in a newer account if you wish to do more encrypted discussions ;)

      --
      ...free your source and the rest would follow...
    17. Re:It's Really Pretty Trivial by webcrafter · · Score: 1

      So does that mean there are only 174 geeks cooler than I?
      Of course! I knew there had to be a reason for those annoying chicks to hang around here...

    18. Re:It's Really Pretty Trivial by SpaceTux · · Score: 1

      I've done this too with IDEA cipher. Only my experience was that somehow, when upgrading from 2.4.9 to 2.4.16, there was no backward compatibility.. Could be that I forgot to say yes at 'Use relative block numbers as basis for transfer functions' the first time encrypting, but I can't remember that! :)

      BTW check out:

      ftp://ftp.kernel.org/pub/linux/kernel/people/hvr

      Here you can find some other patches for newer kernels.. up to 2.5.0

      I've encryption on my laptop like this:

      I've made this small encrypted partition (which could be a file too, I know :), and mount it at boot time to /crypto on my system. In this there's a /crypto/root and /crypto/home/[users] dir-structure.. Whenever I want something to be on the encrypted part (eg. bookmarks / email / my work / icqlogs etc.), I move it and make a symlink from the original place, to the place on /crypt.. This works fine for me..

    19. Re:It's Really Pretty Trivial by jezzball · · Score: 1

      Funny that you and jnik both are posting at +1, as am I...

      Older people don't get +2's...

      /. just doesn't seem to hold the fascination it used to...

      --
      ls: .sig: File not found.
      (A)bort, (R)etry, (I)gnore?
    20. Re:It's Really Pretty Trivial by Ewan · · Score: 1

      Absolutely, though I've just realised the one flaw in the whole argument - CmdrTaco is probably number 1 :)

      Ewan

    21. Re:It's Really Pretty Trivial by Anonymous Coward · · Score: 0

      Trivial is opening up the file properties and clicking 'Encrypt' on...

      Trivial is not what you just described.

    22. Re:It's Really Pretty Trivial by Glytch · · Score: 1

      I'll take a goddamn badge too while you're at it, pigfucker. ;)

    23. Re:It's Really Pretty Trivial by ishark · · Score: 2

      Got any links or should I just look in standard locations? (Kernel archives, freshmeat?)

      It's the one at cryptoapi.sourceforge.net. I didn't mention a link since it was in the story submission.

    24. Re:It's Really Pretty Trivial by dylan_- · · Score: 2

      Older people don't get +2's...

      Ahem! :-)

      --
      Igor Presnyakov stole my hat
  20. Try BestCrypt by Wee · · Score: 4, Informative
    I know it's not really an encrypted filesystem, per se, but BestCrypt might be enough for you. It's a bit like NAI's PGPDisk. Essentially, you mount an encrypted file and then access it like any other disk (it has a mount point, etc). The nice part (for me) is that they have a Win32 version as well, so using BestCrypt and Samba means that I can have my wife's securely store her Quicken stuff on my fileserver (which is the only machine that gets a backup). The only "bad" thing about BestCrypt is installation. You have to make real sure your kernel sources are in good shape. I had a few issues installing it because I had a few different kernel sources laying around (not good, I know, I know...). Anyway, it's not that hard to install, but not a userland type thing either.

    Like I said, it's not a filesystem, but it might get you by. I personally don't care if /etc is encrypted or not. But I might care if /home was encrypted. It's easy enough to mount a BestCrypt container file at /home, so that might be enough.

    -B

    --

    Ash and Hickory, straight-grained and true, make excellent bludgeons, dandy for the cudgeling of vegetarians.

    1. Re:Try BestCrypt by Anonymous Coward · · Score: 0

      actually, you can encrypt an entire partition using bestcrypt, add a filesystem to it, and thus you effectively have an encrypted filesystem.

      i even do this with bestcrypt and logical volumes. works like a charm, and no observable performance loss.

  21. Re:first post by Anonymous Coward · · Score: 0

    But, as it turns out it was a troll since we're all responding to it. Or maybe it was the original moderation of "Troll" that was the real troll?

  22. I'm using the "old" sourceforge thing.... by ishark · · Score: 2
    ...and is seems to work ok. There's a problem with the compilation, you need to add -DEXPORT_SYMBOLS in the api/ subdir makefile for it to compile correctly.


    Apart from that I never had any problem with it, but I admit that I never did much testing.

  23. CFS by Anonymous Coward · · Score: 2, Interesting
    I use CFS, which is a daemon the uses NFS to encrypt file and filenames. The files are stored encrypted on an ordinary filesystem.


    It works well. I'm no security expert buy I can see a couple of problems with it. Firstly it uses triple-DES. Probably secure enough, but not so fast. There are certainly more suitable ciphers out there.


    The key comes from a pass phrase. cfs forces you to have a pass-phrase with at least enough bits to fill the DES keys, but obviously unless you like memorizing long strings of random charcters there will be far less entropy than required in the key.


    Secondly meta-data is not encrypted. So, although Eve can't tell what is in a particular file, she can see the directory structure (but not filenames) and when a file was created/modified/accesses.


    Apart from these criticisms it seems quite good. Users can create/attach/detach encrypted filesystems without special priveledges. You can specify a timeout on a file store so it is dettached after a certain period.

  24. Maybe for you.... by coyote-san · · Score: 5, Interesting

    Maybe you need deniability, but out here in the real world a lot of people should be using encrypted file systems just to ensure that sensitive or confidential information is not exposed to others if the disk is stolen, the cleaning people are bored, etc.

    Personally, I don't want my doctor to have deniability about his records regarding me. Or my lawyer. Or my accountant. And most especially not my banker, financial adviser, etc.

    In fact, for these people deniability makes a solution look much less attractive. People get *really* nervous when their accountant or lawyer has strong deniability about what the advice they gave you, about where your money went, etc.

    --
    For every complex problem there is an answer that is clear, simple, and wrong. -- H L Mencken
    1. Re:Maybe for you.... by Anonymous Coward · · Score: 0

      I don't know, my psycho therapist having deniability might now be all that bad,,,,, uhhh, wait a minute, dohh.

    2. Re:Maybe for you.... by Anonymous Coward · · Score: 0

      In fact deniability doesn't mean you can deny what you have encrypted, it means the opposite. You can prove that it was you who wrote that exact thing.

    3. Re:Maybe for you.... by Malcontent · · Score: 2

      Now that Ashcroft has thrown out attorney client privledge it maybe very important for your attorney to have deniability. Since all phone conversations between attorney and client can be tapped you may desire that communications take place in an encrypted email format. You may then want your lawyer to encrypt his filesystem for when the fed come knocking down his door.

      --

      War is necrophilia.

    4. Re:Maybe for you.... by themassiah · · Score: 1

      As an aside...

      It's an interesting social commentary that you (and most Americans, methinks) assign "don't want" to things concerning your physical wellbeing, but your monetary wellbeing has "especially not" priority.
      Just my thought.

      --
      - Sometimes you're the pidgeon, sometimes you're the statue.
  25. Question to Cliff: Why does this help? by mAsterdam · · Score: 1

    Ehrmm.. Cliff, why do you think this specific feature might help moving people away from MS-centric thinking? I'ld say most people who know about cryptography know about non-MS systems, the others might not be terribly interested. Please explain.

    1. Re:Question to Cliff: Why does this help? by CTho9305 · · Score: 1

      People might use encrypted NTFS for additional data security - if they can't encrypt a filesystem in Linux, they might not feel secure.

    2. Re:Question to Cliff: Why does this help? by Delphis · · Score: 1

      Another thing is, using NTFS you can simply claim that the system 'lost' your data. Such a claim will have much greater feasibility than the same claim under a Linux system ;)

      --
      Delphis
    3. Re:Question to Cliff: Why does this help? by CTho9305 · · Score: 1

      Not really... if you use NTFS on linux it will be REALLY believeable that you lost data ;-)

  26. SUSE has it by HighTeckRedNeck · · Score: 2, Redundant

    The install for SUSE version 7.2 professional had it built into the install. Select expert partitioning and it was a check box selection in the mount-point, file system type dialog box. You could edit the boot sequence to remove the prompt to mount the file system and then mount it only when you wanted it mounted. Once mounted it was visible in unencrypted form but you could un-mount anytime. Reading and writing is done via a loop back that decrypts /encrypts during read/write. It is visible as a standard file system once mounted to all programs by all users. SUSE 7.3 has this to say http://www.suse.com/us/products/suse_linux/i386/se curity.html Watch the space in security, comment dialog box is too small to fit url without it injecting a space.

  27. CFS works great by zinc · · Score: 1

    You should really take a look at CFS. With a little patching it will compile under the various RH distros. Go here for patches: CFS patches

    --
    i rock.
  28. Project by Anonymous Coward · · Score: 0

    www.gnupg.org

  29. RubberHose by Acy+James+Stapp · · Score: 2, Redundant

    The Rubberhose encrypted filesystem might be more suitable for individuals.

    Read about it at www.rubberhose.org. It's primary feature is deniability, (from their web page)

    Rubberhose is a computer program which both transparently encrypts data on a storage device, such as a hard drive, and allows you to hide that encrypted data. Unlike conventional disk encryption systems, Rubberhose is the first successful, freely available, practical program of deniable cryptography in the world. It was released in an earlier form in 1997, but has undergone significant changes since that time. The design goal has been to make Rubberhose the most efficient conventional disk encryption system, while also offering the new feature of information hiding.

    Rubberhose is a type of deniable cryptography package. Deniable cryptography gives a person not wanting to disclose the plaintext data corresponding to their encrypted material the ability to show that there is more than one interpretation of the encrypted data. What deniable crypto means in the Rubberhose context is this: if someone grabs your Rubberhose-encrypted hard drive, he or she will know there is encrypted material on it, but not how much -- thus allowing you to hide the existence of some of your data.
    --
    -- Too lazy to get a lower UID.
    1. Re:RubberHose by ansible · · Score: 2

      StegFS (Linux only) is another steganographic filesystem. It's licensed under the GNU GPL, unlike Rubberhose.

      http://www.mcdonald.org.uk/StegFS/

    2. Re:RubberHose by Anonymous Coward · · Score: 0

      What deniable crypto means in the Rubberhose context is this: if someone grabs your Rubberhose-encrypted hard drive, he or she will know there is encrypted material on it, but not how much -- thus allowing you to hide the existence of some of your data.

      ...and then they beat you with a rubber hose until you tell them. I get it.

  30. CryptoAPI by Agent_Leprechaun · · Score: 5, Informative

    Do a search on google for CryptoAPI. That's the new encrypted filesystem interface for linux. The pathes for 2.4.3 are old. I have an encrypted file system working with 2.4.16 patched with GRSecurity. You no longer need to patch the kernel with CryptoAPI, it just creates kernel modules that you install. It's pretty easy to do.

    1. Re:CryptoAPI by GroovBird · · Score: 1

      You might want to add "-microsoft" to your Google search, since CryptoAPI is also the unified programming interface for anything cryptography on Windows.

      not bashing or anything. it's also great stuff but you don't need it in the context of this post.

      Dave

    2. Re:CryptoAPI by jjermann · · Score: 1

      Its http://cryptoapi.sourceforge.net/, use CVS

  31. So is Rot 26 by Anonymous Coward · · Score: 0

    Why use XOR when you can just use ROT26 =)

    1. Re:So is Rot 26 by Anonymous Coward · · Score: 0

      All my data is encrypted by ROT26 and it works great! Performs seamlessly and transparently with every program I have.

    2. Re:So is Rot 26 by Anonymous Coward · · Score: 0

      That should be "double ROT13", y'know, more marketable ;-)

    3. Re:So is Rot 26 by edmudama · · Score: 1

      My system is quad-ROT13, a $100 upgrade to your double-ROT13

      --
      More data, damnit!
    4. Re:So is Rot 26 by terpia · · Score: 1

      Quad Rot13 is cool and portable, but a little lossy......; )

      --
      .sig wanted: Must be concise, funny, and display my cleverness.
  32. crypto filesystems "easy" by coyote-san · · Score: 2

    It's easy to implement a crypto filesystem, but hard to do it *right*.

    Some quick examples:

    1) Is a standard cipher used? (easy, now that libraries are widely available)

    2) Is a standard cipher used *correctly*? (e.g., no ECB mode!)

    3) Does the same data in two blocks encrypt to the same ciphertext? If not, how are you randomizing them? What happens if you copy an encrypted FS from one media to another, e.g., via backups?

    4) How do you detect an incorrect encryption key?

    There's then the whole issue of key management, the truly hard part. How do you generate the key from the password? How do you support multiple users on the encrypted file system? (N.B., this is cryptospeek for "how do you prevent disgruntled employees from encrypting your data then walking away?" This usually means secondary and even tertiary keys automatically inserted by the system.) How do you handle system reboots?

    Finally there's the mundane. Top of that list - how do you handle backups? Can you back up the encrypted data? Can you deny backups of the unencrypted data?

    --
    For every complex problem there is an answer that is clear, simple, and wrong. -- H L Mencken
    1. Re:crypto filesystems "easy" by sdxxx · · Score: 1
      1) Is a standard cipher used? (easy, now that libraries are widely available)

      AES/Rijndael, which is a good algorithm.

      2) Is a standard cipher used *correctly*? (e.g., no ECB mode!)

      It encrypts the file offset and a per-file IV, XORs this with the plaintext, and then encrypts again. Thus the same block encrypts differently if it appears in two different files or at two different locations in the same file.

      3) Does the same data in two blocks encrypt to the same ciphertext? If not, how are you randomizing them? What happens if you copy an encrypted FS from one media to another, e.g., via backups?

      Same data encrypts differently, as described above. The IV is stored within the file itself. There is a 512-byte space overhead, but you can safely copy encrypted directories to back them up, etc.

      4) How do you detect an incorrect encryption key?

      There is redundancy in encrypted file names, so if you type the wrong passphrase you won't see any files. (Or you could have multiple passphrases for an encrypted directory, and see different files depending on which you typed.)

      The system was described in a Usenix paper on user-level file systems last year (actually won best paper award).

  33. I've used it the last 2 years by lessthan0 · · Score: 5, Insightful

    For the past two years, I've been using it in several distributions, manually applying the kernel patches and compiling the necessary programs (utils). But with SuSE (>7.2), kernel encryption is built in which has saved me a load of time compiling it into the kernel.

    SuSE uses twofish as the encryption algorithm which is good enough for me. I would prefer to use serpent, but not enough to recompile everything. Both twofish and serpent were finalists in the U.S. Federal AES competition, both losing to rijndeal. Of course, W2K/XP use weak 56-bit DES in their EFS and have administrator back doors, so it barely qualifies as encryption.

    If you want fast, reliable, and easy to use enrypted file systems, choose SuSE!

    1. Re:I've used it the last 2 years by sheldon · · Score: 3, Informative

      Wrong. EFS does not use 56-bit DES you idiot.

      Microsoft is using 128-bit DESX encryption for EFS. What is DESX? It's a strengthened version of DES created by RSA Laboratories.

      http://www.rsa.com/rsalabs/faq/3-2-7.html

      As far as the back doors are concerned. If it's your own machine you have nothing to worry about because only you would know the backdoor. However for a corporation the administrative back door is regarded as a must-have feature in case an employee is fired, dies, leaves the company, whatever.

      Why are Linux users so bloody ignorant?

    2. Re:I've used it the last 2 years by lessthan0 · · Score: 1

      The 128-bit keys are only for US and Canada versions, dickweed. The SANS Institute considers their implementation of DESX still breakable by brute force.

      http://www.sans.org/infosecFAQ/win2000/w2k_efs.htm

      Do you consider that backdoor a must-have for your personal data? I guess if you don't really want to keep you data secure, it's a must-have.

      Why are Windows users sheep?

  34. Oh yeah???? by sterno · · Score: 0, Offtopic

    Well mine is bigger! Er, I mean smaller. Right. No, not that, I mean ... oh nevermind

    --
    This sig has been temporarily disconnected or is no longer in service
  35. encrypted root + warning about crypto in linux 2.4 by patbernier · · Score: 5, Insightful

    For the truly paranoid, or as used to be my case, for laptops that travel a lot and hence are very prone to theft, the cool thing to do is to encrypt your (almost) entire disk, with your root filesystem on an encrypted loopback device, and no swap at all (because swap can't efficiently be encrypted, and RAM is so cheap anyway nowadays). Of course you still need to keep a small unencrypted boot partition to host your kernel, and an initrd image. The initial ramdisk must have a script that will setup the loop device -- prompting you for your passphrase -- before proceeding with system boot.

    For additional protection, you might be tempted to keep this boot partition on a business-card size CD-R, thus making sure that nobody can insert code to steal your passphrase, but if they have access to your system for long enough, they could install a hardware keylogger and you're screwed anyway ^_^... Still, might be worth it to put some tamper detection right after the root fs is mounted (i.e. an md5sum check of your entire boot partition)

    In any case, I've used such a laptop on a day-to-day basis for over a year and it worked great -- but do expect a huge performance loss on disk access.

    On a related note, there is a warning on http://www.kernel.org/pub/linux/kernel/crypto/v2.4 /README.WARNING to the effect that encryption might be a bit broken in 2.4 kernels. I guess you better stick with 2.2 for now if you really need loopback crypto filesystems...

    --
    "Words have meaning, and names have power." -- Lorien
  36. Apologies by Lethyos · · Score: 3, Insightful

    Sorry to everyone who was offended by my last comment in this post. I did in fact mean to help, but I just though that the original submitter of this Ask /. question could have done a little more work figuring this out. Hell, even I managed to get my file systems encrypted with that outdated HOWTO.

    Nonetheless, I'm sorry for spoiling something informative with some elitist babble. It's just a knee-jerk reaction from time to time.

    --
    Why bother.
    1. Re:Apologies by Anonymous Coward · · Score: 0

      but just look at how much fun we've been having since you stirred the pot

    2. Re:Apologies by gmhowell · · Score: 1

      Lots of people slagging your original comment (somewhat warranted. But also somewhat pointless, as almost every Ask Slashdot has a post to the same effect as yours. Ironically, I had an Ask Slashdot rejected, even though it was more involved than this.) but nobody giving you a thumbs up for apologizing (okay, some modders).

      So... Thumbs up. Takes class to apologize.

      --
      Jesus was all right but his disciples were thick and ordinary. -John Lennon
    3. Re:Apologies by dman123 · · Score: 1

      All is forgiven. My knee jerks too, but my slow typing stops that from being too uch of a problem on message boards.

      --

      --
      dman123 forever!
      Filtering out the -1s and 0s since 1999.
    4. Re:Apologies by dman123 · · Score: 1

      ...and ironically it also helps that I skip letters and have to reread my posts and that slow me down much more than normal.

      --

      --
      dman123 forever!
      Filtering out the -1s and 0s since 1999.
  37. Which is better for FreeBSD? CFS or Rubberhose? by d_force · · Score: 1

    How does CFS compare to Rubberhose? I know the Rubberhose FreeBSD port is out of sync, but has CFS been updated.. or is that more outdated than the Rubberhose port?

    - dforce

    --
    SELECT * FROM USERS WHERE A_WINNER = "YUO";
    1. Re:Which is better for FreeBSD? CFS or Rubberhose? by ftobin · · Score: 2

      but has CFS been updated

      I don't see why this question is relevant. I have been using CFS for 3+ years on FreeBSD 2, 3, and 4, without a hitch. There does not seem to be a need for being 'updated'. It works very well.

    2. Re:Which is better for FreeBSD? CFS or Rubberhose? by mafmaf · · Score: 1

      I think you should update your cfs. There is a bug , which I found the hard way earlier this year, which may cause file-corruption.

      My original post on the bug can be found on http://www.mit.edu:8008/bloom-picayune/cfs/236

    3. Re:Which is better for FreeBSD? CFS or Rubberhose? by Anonymous Coward · · Score: 1, Informative

      The last time I tried, it worked fine...except for sparse files. They were handled properly as sparse files, but when you read the holes, cfs would try to decrypt it and return random garbage.

  38. Comment removed by account_deleted · · Score: 2

    Comment removed based on user account deletion

  39. SuSE Linux comes with an encrypted filesystem by nakana82 · · Score: 2, Informative

    When you are at the partitioning stage there is a box you can check that allows encrypted filesystems.

  40. Your employer? by 0tim0 · · Score: 0, Offtopic

    Yeah, right, you just want to hide your pr0n from your wife!

    --tim

  41. centric? lame by Anonymous Coward · · Score: 0

    Move away from Microsoft centric software, and move to Linux centric software? GAY

    Why not just use OpenBSD, which has filesystem encryption by default.

    I can't understand why people want to use Linux for everything.

    Use OpenBSD or Solaris.

    1. Re:centric? lame by Anonymous Coward · · Score: 0
      Why don't people use OpenBSD ? Heres a few quick reasons:
      • The installation is a serious pain in the ass. The setup program is VERY poorly done, compaired to something like FreeBSD which is more saine. (RedHat, for example, has a nice install program)
      • OpenBSD is more of a pain when it comes to things like networking and what not. Try watching someone new to *nix figure it out. Won't happen. FreeBSD isn't all that nice either, nor is NetBSD. Linux however, is pretty simple. I think its simpler then NT.
      • Linux has more newbie applications and configuration apps. Lets face it, not all users will want to use the console and vi to setup Apache. If you think that they shouldn't use those kind of tools, you have some issues way beyond the scope of this ...
      • Setting up X is much simpler .... nuff said on that area. Try getting a Voodoo 3 or nVidia card working, and rendering something usefull. No DRI or anything.
      • Why do people use Windows ? There are tons of people out there, who have the brains to use something better. But, for some odd reason, stick to Windows.
      The list goes on and on, but thats basicly why users pick Linux over *BSD.
    2. Re:centric? lame by Graymalkin · · Score: 2

      Uh, the question was about encrypted file systems which has little or NOTHING TO FUCKING DO WITH NEWBIW INSTALLATIONS OF THE FUCKING OS. In fact I'd go so far as to venture that wondering about encrypted file systems is something no newbie to any OS would ever wonder about. The original topic has nothing to do with fucking configuration apps. Not to mention the dude also suggest Solaris which is pretty easy to install on supported hardware and it has a mature encryption system. Geez man don't attack someone who dares question the omni power of Linux.

      --
      I'm a loner Dottie, a Rebel.
  42. The International Kernel Patch by Goodbyte · · Score: 2, Interesting
    I'm running a mix between the international kernel patch www.kernel.org/pub/linux/kernel/crypto, (accually http://www.kerneli.org but it hasn't been alive for some time now) and crypto api (which is a branch from kerneli.)
    Something needs to be done about the block size problem - the solution from cryptoapi doesn't seem "the right way" ;-)

    The best things about kerneli are the possibility to choose between different encryption algorithms and that it's not filesystem dependent. Though I miss the oppertunity to use the encryption algorithms in userspace programs. (Same thing about the digest algorithms, do thay have any function except for enlarging the kernel size?)

    I'm currently testing a pam module that mounts kerneli encrypted home directories, release scheduled a few weeks into the future.

  43. International patch for kernels up to 2.4.13 by the_olo · · Score: 1

    I by myself were getting the international kernel patch up to date for some kernel versions up to 2.4.13. You can get those versions at ftp://office.altkom.com.pl/pub/linux/patch-int/.

    I'm not a kernel hacker, though... I just applied them and resolved rejects by hand. They _do_ seem to work on kernel 2.4.13, I tested that with serpent encryption of a filesystem on a loopback device.

  44. First Post by Anonymous Coward · · Score: 0

    Prove that it wasn't......

  45. Re:encrypted root + warning about crypto in linux by Goodbyte · · Score: 1
    On a related note, there is a warning on http://www.kernel.org/pub/linux/kernel/crypto/v2.4 /README.WARNING to the effect that encryption might be a bit broken in 2.4 kernels. I guess you better stick with 2.2 for now if you really need loopback crypto filesystems...

    Use cryptoapi instead. It's almost like kerneli (but only compiles as modules) and they have a fix (though maybe not the best).

  46. Crypto Kernel Patches by Ollierose · · Score: 1

    According to an article in the UK Magazine Linux Format (http://www.linuxformat.co.uk) some similar kernel patches are available from your local kernel.org mirror in /pub/linux/kernel/crypto/

    They also recommend the cryptoapi modules (http://cryptoapi.sf.net) as an alternative, with an in-depth guide.

    It's in Issue 21, if you can get hold of their back issues department.

  47. Ok, fix it then!!!!! by hughk · · Score: 1
    If this is so trivial, why not submit an updated patch back to the tree?

    Personally, I've hacked around a little bit but a hand edit of a kernel makefile is not exactly beginner's stuff.

    --
    See my journal, I write things there
  48. some possible solutions by jjermann · · Score: 2, Informative

    normal:
    cryptoloop (cryptoapi), loop-aes, cryptfs, bestcrypt, crypto-patch (up to ~2.4.12, you have to change the Makefile -> better use cvs-cryptoapi)

    steg:
    stegfs, vs3fs

    network:
    cfs, tcfs, sfs, vpn solutions

  49. HOWTO: / crypted by Anonymous Coward · · Score: 0


    Here is an explanation of how to setup a crypto-loopback as root device. Its not trivial, but for notebooks its a nice thing. Worked nice for me, also the after-installation method.

    Great.

    http://segfault.net/~gamma/gammas-notebook-highs ec urity-howto.txt

  50. Re:encrypted root + warning about crypto in linux by Amon+Re · · Score: 1

    I thought OpenBSD had successfully implemented encrypted swap capabilities into there operating system.

  51. International Crypto Patch by MeanSolutions · · Score: 1

    The person asking the actual question mentions the international crypto patch available from the kernel.org ftp-sites and that the patch is for kernel 2.4.3.

    Well, I am running kernel 2.4.13-ac5 with LVM and the above mentioned patch and it is working quite well for me. There is one snag with it and that is that when applying the patch, the main Makefile in /usr/src/linux (or where-ever that is pointing) needs amending. Look in Makefile.rej for the lines (two of them) with a + prepended and you see which ones they are. I add them manually since it is very little to type.

    Once kernel is patched, enable loop crypto and the various ciphers you want to use, build, install and boot kernel. Follow instructions in the crypto directory in the patched kernel tree for how to make the crypto aware mount, umount and losetup binaries. Replace the originals when they are built. Now, create a file, 64 MB in size, use losetup to attach to a /dev/loop? file, then mke2fs on the loop device twice(!) as it doesn't seem to take the first time. Mount the loop device as normal.

    There is some details in the fstab man-page for how to set up an fstab entry for an encrypted e2fs. You can not (although the man-page says so) give the key-size in the fstab entry. (At least I can not do that.)

    Happy hacking....

    --
    Swedish, but resident in the UK since 1996.
  52. Q about Rubberhose. by Anonymous Coward · · Score: 0

    Someone help me, I read the great 12-page introduction to Rubberhose, but I cannot figure out how to reconcile ''An aspect doesn't know about the other aspects'' (paraphrasing) and the way blocks are spread over the disk, with no collisions(? or collisions that are resolved) between aspects (that is, only one aspect may own a block).

    Or restated; if the aspects doesn't know about each other, then how can they avoid interfering with each other?

    One dosage of Enlightenment requested.

  53. CryptAPI by jd · · Score: 2
    There's a readme in the kerneli 2.5 stuff, pointing to a different directory. In that directory, there's a bunch of patches titled "cryptapi", for 2.4.x and 2.5.x. And they seem VERY current. And much better maintained than kerneli.


    I'm not following the lists at the moment, but I'd hazard a guess that cryptapi is the replacement for kerneli, which has been in a coma for ages.

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    1. Re:CryptAPI by TheEnglishman · · Score: 1

      Patches are here at kernel.org, but no READMEs.
      You might also want to look at the kernel/crypto directory also at kernel.org.

      There is also a pointer to cryptoapi.sourceforge.net

  54. Re:FreeBSD & NFS ( URL Correction ) by Pi3.142 · · Score: 0
  55. Lame, Windows XP implementation by Zeinfeld · · Score: 4, Interesting
    So I happily install XP Professional because it has the ability to use encrypted file stores. This would be just the thing to carry files from one machine to another on a 128Mb Compact flash or so.

    Bzztt... wrong...

    Turns out that NTFS cannot be used on removable disks, even though the NTFS semantics are better suited (think what happens when a disk is unmounted unexpectedly.

    The main reason I use an encrypted disk is that I have a lot of client sensitive info on my machine, including high level strategic plans for a Nasdaq 100 company.

    Encrypted disks should be used as a matter of course on machines used by lawyers, doctors, accountants, anyone with a professional confidentiality duty. Laptops get stolen, machines get sold with confidential information still on the drives.

    I am more skeptical about the need for encrypting file systems for geeks, after all most sysops would do better to keep less secrets rather than more.

    --
    Looking for an Information Security student project suggestion?
    Try http://dotcrimeManifesto.com/
    1. Re:Lame, Windows XP implementation by Icy · · Score: 2, Informative

      Turns out that NTFS cannot be used on removable disks
      I use NTFS on my zip 100 disks all the time. Its not that it won't work on removable disks, its that they disable the use of NTFS on small disks (and i guess flash cards? never used them.). I have not formated one on WinXP yet, but I have on WinNT4 and Win2000.

    2. Re:Lame, Windows XP implementation by Anonymous Coward · · Score: 0

      You got that wrong, try this instead:
      Seasame street was brought to you today by the numbers M, I and T and the letter 2.71828182845904523536028747135266

    3. Re:Lame, Windows XP implementation by TheCabal · · Score: 1

      Turns out that NTFS cannot be used on removable disks, even though the NTFS semantics are better suited (think what happens when a disk is unmounted unexpectedly.

      Actually, NTFS can be used for removable media now. The NTFS driver might not be able to handle a Flash card as an NTFS mountable volume, though. You did set the flash up as a dynamic volume, right? I've seen Zipdisks that work just fine formatted NTFS, but haven't had the chance to play with Flash cards.

    4. Re:Lame, Windows XP implementation by Anonymous Coward · · Score: 0

      Microsoft does have a solution for this in it's support for Smartcard technology. There are a variety of smartcard's and smarttoken's today that have file storage capabilities.

      Otherwise, I think your problem is the compact flash card, which has a very specific way it is formatted in order to maintain compatibility with other systems. (If you formatted it with NTFS do you think it'd work in your digital camera?)

      Zip disks can be formatted with NTFS. I imagine you could use EFS, but you'd need to have a certificate server in place for your organization because otherwise the cert is tied to your one machine.

    5. Re:Lame, Windows XP implementation by Anonymous Coward · · Score: 0

      Let me see, you are posting an offtopic commit on /. and you use windows to keep sensitive info for a Nasdaq 100 company. Oh, I get it you work for Microsoft. Duh.

    6. Re:Lame, Windows XP implementation by Zeinfeld · · Score: 2
      Let me see, you are posting an offtopic commit on /. and you use windows to keep sensitive info for a Nasdaq 100 company. Oh, I get it you work for Microsoft. Duh.

      No, not close.

      And since the topic is encrypting file stores I don't think the issue is off-topic. The point is not that encrypting file stores are a bad idea. It is just that the typical uses of Linux don't have a great deal of overlap with the areas where you really need encrypting file stores.

      --
      Looking for an Information Security student project suggestion?
      Try http://dotcrimeManifesto.com/
    7. Re:Lame, Windows XP implementation by Zeinfeld · · Score: 2
      I use NTFS on my zip 100 disks all the time. Its not that it won't work on removable disks, its that they disable the use of NTFS on small disks (and i guess flash cards? never used them.).

      Could be that the limit is 128 Mb, I tried with a 64Mb compact flash, that is the largest I have so far. A friend told me they had problems with a 128Mb in a Nicon Coolpix 900 (he could only see 80Mb) so I didn't get any larger ones.

      The help file is less than helpfull

      --
      Looking for an Information Security student project suggestion?
      Try http://dotcrimeManifesto.com/
    8. Re:Lame, Windows XP implementation by gmanske · · Score: 1

      Actually, it is possible to use NTFS on removable media, although not recommended.
      More at Sysinternals.

    9. Re:Lame, Windows XP implementation by sql*kitten · · Score: 2

      So I happily install XP Professional because it has the ability to use encrypted file stores. This would be just the thing to carry files from one machine to another on a 128Mb Compact flash or so.

      You'd be better off with PGP7 and it's PGPdisk utility. I use it all the time to move around an encrypted file system on an Iomega Zip disk. The down size is that you need to have PGP installed on every machine you intend to use, and a way to move your keyring around too.

  56. Re:FreeBSD & NFS ( URL Correction ) by Anonymous Coward · · Score: 0

    thanks

    --MB

  57. Re:encrypted root + warning about crypto in linux by ansible · · Score: 2

    Yup. The last I read, there was only a slight performance hit, and very acceptable for the truly paranoid.

  58. be careful with CFS as it uses NFS by LM741N · · Score: 1

    I had very good results on FreeBSD with CFS, but I was very aware of the vulnerabilities of running NFS, and made certain to modify my firewall appropriately.

    I created an encrypted home directory that was bootstrapped by an almost empty normal home directory. In the last lines of .bash_profile I added some lines to cattach the encrypted directory and then switch me over to the encrypted one. Things like .qmail and .ssh had to go in the unencrypted directory however.

    Have Fun! Rob.

  59. twofish loopback encryption by aCC · · Score: 2, Informative
    Twofish loopback encryption is a module to encrypt loopback devices "independent[ly] from the medium on which the filesystem is stored".

    This is quite different to quite a lot of other methods. It allows to backup encrypted files to e.g. CDROM and still have them mountable from there. Works quite well.

  60. swap encryption ? use OpenBSD by ^BR · · Score: 4, Informative

    By setting just one sysctl (vm.swapencrypt.enable=1)OpenBSD encrypt its swap using AES.

    You just have to uncomment one line in /etc/sysctl.conf to activate it permanently.

  61. StegFS? by lnxslak · · Score: 2, Informative

    What about StegFS is a steganographic filesystem for linux. It encrypts the data and hides it. Although it does not work with 2.4.x kernels, a decently patched 2.2.20 kernel should do well enough. If that's not you particular cup of tea there is always cfs tcfs.

    Fighting for Peace, is Like Fucking for Virginity

    --
    Fighting for Peace, is like Fucking for Virginity.
  62. !!!!!LOOK AT THIS URL!!!!! by Anonymous Coward · · Score: 0

    http://www.kernel.org/pub/linux/kernel/crypto/v2.5 /README<BR><BR>

    States:<BR>
    see ftp://ftp.kernel.org/pub/linux/kernel/people/hvr for the meantime

  63. What, no legal rights? by Anonymous Coward · · Score: 0

    Under UK law, everyone has a legal right to view all information held on them by anyone (except MI5), with a full explanation of the meaning and implications of any data. America's the "land of the free", which seems to mean that people are free to screw other people over...

  64. Herbert Valerio Riedel's Explanation by Sonicated · · Score: 1

    HVR posted about this on the linux-crypto list a few days ago.

    "Alexander Kjeldaas was the billing contact [for kerneli.org] and seems to have vanished... something serious must have been happend, as he seems to have disappeared suddenly from earth :-/

    He go's on to say:

    "I don't dare yet to put anything official out, [at ftp.kernel.org/pub/linux/crypto/v2.4] unless I know what's happened with alex..."

    Does anyone have any information on Alex's whereabouts?

    I use the CVS version of cryptoapi which works fine for the latest kernels. ftp.kernel.org/pub/linux/kernel/people/hvr has recent kernel patches.

    Tim

  65. International Kernel Patch as become cryptoapi by FyreMoon · · Score: 1

    I was looking through the readme.warning on the kernel.org ftp site, and it points you to:

    http://cryptoapi.sourceforge.net/

    Last update August 12, 2001

  66. OpenBSD filesystem encryption by friscolr · · Score: 4, Informative
    Why not just use OpenBSD, which has filesystem encryption by default

    It has the code for it, but it isn't enabled by default.

    Enabling swap encryption is easiest, you just modify you /etc/sysctl.conf (it's labelled well in that file) and/or use the sysctl command.
    i use swap encryption on my 1.2 athlon, but not on my 486's running openbsd.

    Enabling filesystem encryption requires a kernel build (you need to add "option TCFS" to your config) and some commands to be compiled and run. i found this article to be helpful.
    i just did this to see what it'd be like. the documentation is rather minimal but it is workable. You have the option of using 3DES, RC5 and Blowfish. Check out that link for more info.

  67. Use Loop AES by Tack · · Score: 2

    I use loopAES:

    http://loop-aes.sourceforge.net/

    It works wonderfully, and has worked on every kernel I've tried it on. It doesn't patch the kernel and require a rebuild (except that it requires you do not use the kernel's standard loop device).

    It requires a little bit of extra work in that you need to patch util-linux. I used to use cfsd, but I've not been able to get it to work on recent kernels, so I've moved my encrypted volumes to loopAES. I've had no problems at all with it.

    Jason.

    1. Re:Use Loop AES by Anonymous Coward · · Score: 0

      Agreed, loop-aes is sweet. My only problem with it came when I stupidly forget to set the "noauto" parameter in the encrypted fstab entries. :)

  68. CryptoAPI Still Being Updated by kylus · · Score: 1

    From the README.WARNING in the crypto/ directory on kernel.org:

    "(please see also ftp://ftp.kernel.org/pub/linux/kernel/people/hvr for more recent patches or http://cryptoapi.sourceforge.net/"

    If you read the whole thing you can see there are updated patches to the crypto API, but they are works in progress. I'm using the patch for 2.4.15 and I haven't seen any major problems (yet?).

    --
    --Kylus
    Idiot-proof something, and Life will build a better Idiot.
  69. Re:Q about Rubberhose. - maybe this by victim · · Score: 2
    Exactly the problem that popped up in my mind when I read it. I re-read and came to this paragraph in the Idiot Savants' Guide to Rubberhose...
    Rubberhose relies on internal maps to locate where the actual bits of your data are stored amid the random characters. Each aspect has its own corresponding map, and you can only decrypt that aspect's map when you type in the passphrase for that particular aspect. This is why you need to type in all the passphrases before you can safely write to a Rubberhose disk.
  70. Use Sorcerer Linux by nickhudson · · Score: 1

    I use sorcerer linux with an encrypted FS on my laptop ... and on the webpage it has a nice How-to on how to make it work for you . Here is the link here That should help you out some ... i know that in sorcerer that it works with the 2.4.14 kernel.

    1. Re:Use Sorcerer Linux by nickhudson · · Score: 1

      here is the link just incase it didnt show up in the last post http://sorcerer.wox.org/docs/elfs.faq.html ... hope that helps

  71. sleeping laptop defeats encryption by bmidgley · · Score: 2, Informative

    Don't forget that if you put your laptop to sleep and it's stolen in that state that your encrypted filesystem may be left wide open.

    Unmount encrypted filesystems before you sleep the laptop and put a password on your screensaver in case you get lazy. (don't count on a password-protected screensaver to protect you though -- maybe someone will create a screensaver that unmounts any encrypted fs and prompts for the access password... :)

    1. Re: sleeping laptop defeats encryption by Anonymous Coward · · Score: 0

      When used with xscreensaver, the following perl program will run "xlock-on" when the screensaver starts, and "xlock-off" when it exits. These programs could do anything, including unmounting filesystems or prompting for passwords. But be careful, if there are open files the unmount would probably fail. You may want to combine it with fuser to kill all processes accessing the encrpyted space (run it as root so the command won't fail), and use the umount "-f" flag to force an unmount.

      Lameness filter encountered. Post aborted

      Since Slashdot only allows trolls to post perl code and ASCII art now, I can't post the code. See http://www.jwz.org/xscreensaver/man3.html and replace the sound-on and sound-off commands with whatever you want.

    2. Re: sleeping laptop defeats encryption by Anonymous Coward · · Score: 0

      The new "umount -l" option may also help. From the umount man page:

      -l Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore. (Requires kernel 2.4.11 or later.)

  72. Yepp. by Anonymous Coward · · Score: 0

    Thanks. I seem to remember reading something like that in the guide, but it didn't stand out. Basically the "real" password is the _collection_ of aspect passwords.

    Now I feel stupid for not figuring it out. Should have known there wasn't a way around that little problem. Ah, well.

    Very cool thing. Were I the least bit paranoid I'd be installing it right this minute, but I find that my laziness-to-paranoia ratio is too high at the moment.

  73. stegfs by friscolr · · Score: 2
    stegfs scared me away with this line from the paper describing the implementation

    Multiple copies of both inodes and data blocks are stored on disk, so that if one or more copies are destroyed then hopefully others will remain intact.
    (emphasis mine)

    Hopefully! this is my data, not my lottery ticket! i need a bit more reliability than a "hopefully".

    i haven't used StegFS, though, so perhaps this hopefully works out to be more theoretical than it sounds, but i'd still like a guarantee that my data will be there unless i choose to delete it. Yeah i know that's tough given the whole deniability thing, but still, i'd like that guarantee.

    1. Re:stegfs by ansible · · Score: 2

      Read further, and you probably won't be as worried.

      Only when the filesystem is mounted at a lower access level (or as a plain ext2 filesystem) is there a danger of overwriting blocks of encrypted data.

      If you're always using the filesystem with the highest access level, you don't have anything to worry about. It's only when there's a lot of data being written at a lower level that you have to worry.

      If that's the case, like it's a partition that contains home directories for other users, you're already asking for trouble. This should be a filesystem that only you use on a regular basis.

    2. Re:stegfs by Unknown+Bovine+Group · · Score: 1

      I think they mean "hopefully" the same way PGP means "pretty good"...

      --
      m00.
  74. Re:BestCrypt - Works well in Mandrake 8.1 by Anonymous Coward · · Score: 0

    I am using Mandrake 8.1 on a laptop (IBM T20 - PIII 700), and a desktop (Athlon 1GHZ), and BestCrypt-0.8-9 works well.

    I downloaded the .src.rpm, and did a rpm --rebuild to get a i686 rpm.

    I then just installed the newly created rpm with "rpm -ivh ...."

  75. More cryptoapi links by emag · · Score: 2

    I started poking around, and at http://www.kernel.org/pub/linux/kernel/crypto/v2.4 /README.WARNING there was a url listed for "more recent patches. Going there revealed stuff for 2.4.6, 2.4.8, 2.4.10. 2.4.15, and 2.5.0... I plan to check it out myself when I get some free time.

    --
    "The urge to save humanity is almost always a false front for the urge to rule." --H.L. Mencken
  76. Circumvent keylogger by Tiamat · · Score: 1

    You may be able to circumvent a keylogger using the system you outline by having the key burned to the same business card sized CD. I would personally encrypt that key so that BOTH a password, and possession of the CD are needed to boot. You could also tie this to one of those tiny USB devices (DiskOnKey, PenDrive, etc.). Of course, this still would not give you complete protection.

  77. Use Loop-AES by fialar · · Score: 1
    Loop-AES is a great loopback encrypted fs. I've been using it on my boxen both at work and at home, and it doesn't suffer the fs corruption bugs that the International Kernel patch suffers from.

    You don't need to even install NFS to get it working, just go to their web page. Make sure you set the loopback in your kernel compilation to N (do not use 'Y' or 'M' on the option!). Then all you need to do is patch util-linux to create the new versions of losetup, mount and umount and you're ready to go!

    Fialar

  78. Try cryptoloop ... by fluedke · · Score: 1

    I haven't read all replies so I don't know if someone already mentioned this:

    the cryptoapi/cryptoloop package provides strong encryption systems without the need to patch the kernel anymore.

    however, the use of the strong encryption is not allowed in the US.

    you can find some more informations at these URLs:

    encryptionhowto.sourceforge.net
    cryptoapi.sourceforge.net
    www.kerneli.org

    i am using a twofish encrypted partition on an AMD K6 400 and 512 MB RAM with no time loss (okay, there may be a time loss but i dont see it)

  79. Win2k, WinXP EFS by zbuffered · · Score: 1

    NTFS is a great big ol' step up from FAT, but it still sucks a fattie.
    Say you took some nudie pics of your girlfriend and you want to keep them safe. What do you do? You encrypt the file, then set NTFS permissions so that only you can access it, then make sure your nosy roommate doesn't have admin rights to the box.
    Secure? Maybe a little. But he can just grab your HD, put it in his box, boot off of HIS W2k/XP install where he has admin privileges, take ownership of the file, clear the encryption bit, change the NTFS permissions, and start a-whackin'.
    Sounds difficult, but if you're familiar with NTFS permissions, it only takes 15 seconds, plus the time to plug in the HD. The only thing that prevents him from doing so is that when he puts the NTFS permissions back the way they were, he will still be listed as the owner of the file, so you'd know that somebody was playing with the file, if you ever bothered to check.

    --
    Synergy is your friend
    1. Re:Win2k, WinXP EFS by kiscica · · Score: 1

      OK, so I don't know from NTFS, but... if you can simply "clear the encryption bit" and then "start a-whackin'" -- without needing the key -- then what kind of encryption was it, exactly?

      Or is the encryption bit itself the one-bit key?

    2. Re:Win2k, WinXP EFS by TheCabal · · Score: 1

      Pure absolute bullshit.

      Say your roomie gets your HD, puts it in his box. It's not a matter of "clearing the encryption bit". Sure, to encrypt a file it's a simple matter of checking the box to encrypt the file/folder. BUT.... the file must be decrypted before it can be saved in cleartext. And since the recovery key wasn't encrypted with any key on your roomie's box, it's not going to happen until he does some serious haX0ring.

      FUD. It doesn't work on me.

    3. Re:Win2k, WinXP EFS by zbuffered · · Score: 1

      You're right. He can access it by taking ownership and changing NTFS permissions, but if it's encrypted, he can't clear the encryption bit. I don't know what I was thinking. Sorry 'bout that.
      On a similar note, how well are the files encrypted? If you could crack the recovery key, every encrypted file would be yours. How strongly is it encrypted?

      --
      Synergy is your friend
  80. when was the last windows EFS release? by ahde · · Score: 2

    when was the last windows EFS release that was not just a vulnerability patch?

    by the way, when was the last vulnerability patch?

    1. Re:when was the last windows EFS release? by TheCabal · · Score: 1

      when was the last windows EFS release that was not just a vulnerability patch?

      by the way, when was the last vulnerability patch?


      According to this there aren't any hotfixes for EFS itself. There is a hotfix to upgrade the encryption that houses the container where the keys are kept, but that's it.

  81. Idont get it by Anonymous Coward · · Score: 0

    ?WTF?

  82. Re:Win2k, WinXP EFS (wrong) by Anonymous Coward · · Score: 0

    NTFS 5.0 (and probably in WinXP) can be set to NOT save Administrator escrow keys, and a user has a main encryption key which is a function of their SID and their password which is used to encrypt the keys for individual files, so unless you had a known Administrator password to get at the escrow keys, your friend would need to know your password as well, which implies he could simply log on as you and access your files anyway. I was actually quite pleased to learn that Win2000 didn't just store encrypted files with "obscured" security.

  83. Re:encrypted root + warning about crypto in linux by Anonymous Coward · · Score: 0

    Technically you don't have any guarantees that your RAM is totally wiped when powered off. It's volatile and corrupts when powered off, but fragments of data may be left and recoverable. I don't know any way around that, though.

  84. BestCrypt by oolon · · Score: 2

    I have been using this for a year. It works on windows and linux, ok its not free, well infact the source code for the linux one is available for all. It works as a loop back fs, so the "containers" (fikes) for the encrypted data can be copied between machines easily. What filesystem is on the container is up to you, ext2, reiserfs or even msdos. It works on the lastest kernel versions, and has very active support, from jetico and the community. It works using kernel modules so no patching of the kernel is required, having the data in regular files, means its easy to get rid of too. Anyway give it a try http://www.jetico.com

    James

  85. I'm trying to do this by malxau · · Score: 2, Interesting

    I've been working on a project that would be able to do this (one day - hopefully) on Windows, Linux, Solaris, and Mac OS X (Those being the platforms that I have.)

    I'm not a crypto whiz and am having serious trouble finding enough information about how filesystems work in order to implement all of the required interfaces. Does anybody know where this information is, or should I look through Linux/BSD sources - and hope that BSD is applicable to OS X?

    My current version is pretty much a library that allows you to like apps against it, but doesn't support native operation. The next release will add networking support, but I really need to go native to make it useful to people.

    Also, can anybody help decrease the usefulness of the algorithm for decryption so that I can GPL the thing? You can see what I've done from here.

    - Malcolm

  86. Schneier on XOR... by Shanep · · Score: 1

    "The simple-XOR algorithm is really an embarrassment; it's nothing more than a Vigenere polyalphabetic cipher. It's here only because of it's prevalence in commercial software packages, at least those in MS-DOS and Macintosh Worlds [1502.1387]. Unfortunetely, if a software security program proclaims that it has a "proprietary" encryption algorithm-significantly faster than DES-the odd are that it is some variant of this (XOR)".

    --
    War crimes, torture, lies, illegal spying... Would someone give Bush a blowjob, already, so he can be impeached?
  87. www.kerneli.org is gone! by Anon-Admin · · Score: 1

    It has been down for months. I have been unable to talk to anyone who was working on it.

    Does anyone know what happened to it?

  88. Encrypted block device? by mmol_6453 · · Score: 1

    Encrypted block device? cool!

    That could become a major hit in corporate environments, especially ones that use VPNs.

    That concept should be included in the Linux kernel...maybe use a public key system like GPG.

    Probably best implemented as a type of loopback device. Call it an "encryptback" device. That would also let anyone with proper permissions encrypt his files without additional software, at kernel-level timesharing priority.

    Though that may not be a good idea, 'cause a disgruntled employee with system priviledges could just link two encryptback devices together and--whoops...locked the system.

    Score one for Linux! (Well, SuSE, for now.)

    --
    What's this Submit thingy do?
  89. CFS sucks... by mixter · · Score: 1

    But it's the only solution that works independently of kernel versions and patches. It's annoying to depend on specific kernel versions, or operating systems for that matter, to access your encrypted data. CFS sucks though because it tends to give you some errors with newer nfs packages, and because you JUST CANT compile the official cfs sources.. they wont compile on any decent Linux. The BSD port works though. So, here is my quasi-port that will compile on newer linux systems that I made.

  90. Link: 404 not found by germanbirdman · · Score: 1

    Pity. I would really have been interested in this link.

    Having worked as a tester in the past for one of the major backup software companies and tested the backup-ability of the NTFS5 filesystem, I have got to know all the internals of the NTFS5 filesystem and I think it rocks.

    I like the idea of having multiple streams in a file or support for sparse files, or files that are stored in remote storage which are browsable, but only when they are accessed are they restored from tape or whatever.

    I personally work with linux a lot and I actually did some research of my own about encrypted filesystems. I found only old projects.

    What I like about NTFS5 is the transparency of the filesystem for not only encrypted, but also of compressed files (available since NTFS4).

    By the way, the key used to encrypt the files does not have to be stored on the disk - this is only one option. Plugins allow you to have this maybe on a smart card reader or something.

    Is anything planned in the way of linux filesystems that allows files and directories to be encrypted as transparently as under NTFS5?

  91. Cryptonomicon comes to mind :) by BACbKA · · Score: 1

    Cryptonomicon comes to mind indeed when reading your laptop description and your hardware keylogger concerns. BTW that book gives many good insights on data security often overlooked by people applying with "brute-force" encryption techs w/o considering well what happens with the data between you and the encrypted channel entrance...

    --

    VKh

  92. What do the experts have to say by Anonymous Coward · · Score: 0

    Tons of good information on this thread! I've got enough bed time reading now to last throughout 2002. But where are the experts? Surely some Slashdot'r is a guru in crypto filesystems who has experience with the packages mentioned in this thread. Can someone here objectively compare and contrast them on features, reliability, performance, security, maintainability, etc, etc?

  93. DIfferent Encryption technique.....perhaps by josh+crawley · · Score: 1

    I have an old program from the DOS days of programming. It's called KOH (potassium hydroxide ) virus. It resides in your boot sector and encrypts partitions, data, and everything else. Well, I was thinking if you used some sort of dos loopback of Linux ( so that DOS is resident), everything could be encrypted. Perhaps CYGWIN is a good IDEA :-) The encryption used was IDEA (fyi).

    Please, I welcome all criticisms...

  94. Frick yeah! by Anonymous Coward · · Score: 0

    Brilliant!

  95. Yes, it does give you deniability! by CaraCalla · · Score: 1

    This is not about Steganography! Your statement about Steganography is right of course, but this is different.

    1) Each of the to partitions ("aspects") in the 1GB space ("extent") is actually 1GB big. It is just that the data in all aspects together cannot exceed 1GB.

    2) You could actually have 5 aspects (1 for letters to you mum, 2 for emails, 3 for xxx-pics, 4 for faked ultrasecret data and 5 for real ultrasecret data). You could give the court passwords for 1-4 and there will be no way to prove that there is a 5th aspect. That is the deniability.

    The court could suspect it because data in partitions 1-4 only accounts for 850MB of one 1 Gb. But there is no way for them to know for sure.

    Neighter can you prove that there is no other aspect, neighter can they that there is.

    3) All the aspects _are_ writable. Each one on is own as well as any combination of them. The problem is, when writing to any subset you will of course destroy those not in the particular subset.

    4) In other words, when you "forget" a password for any of the aspects, the effects are the same as if this aspect never was there. (If the underlieing cryptosystem is secure.)

    Edgar

  96. FreeBSD solution by sverdlichenko · · Score: 1
    This message is NOT a SPAM :)

    Just a few weeks ago i started my own project for this purpose: vncrypt. It's patched vn(4) driver for FreeBSD-stable that allow transparent encryption. Now it's in beta, encrypting data but with minimalistic and not very secure user level tools.

    CFS by Matt Blaze is a good solution, but I don't like NFS idea and directory structure, file sizes, etc are still visible with it.

  97. unfortunately... by Anonymous Coward · · Score: 0

    ...it is an over-simplification. If used with a One-Time Pad (emphasis on _ONE_), the Vigenere cipher is one of the few ciphers out there that is literally uncrackable.

    1. Re:unfortunately... by Shanep · · Score: 1

      I would have thought that any good cipher would be uncrackable when used with a OTP.

      But getting back to my point with simple XOR'ing, XOR a OTP with raw audio. Now listen to the resulting file... you can still hear the original audio through the noise! Because on average, 50% of bits will have toggled, leaving enough recognisable data behind. Of course, do this with a text file and you're as secure as they come.

      Simple XOR, even with a OTP, is not perfect for every application. It's not even practical for most.

      --
      War crimes, torture, lies, illegal spying... Would someone give Bush a blowjob, already, so he can be impeached?
  98. The real cryptfs by libertynews · · Score: 1

    CryptFS homepage

    CryptFS uses the VFS (Vnode Filesystem) to implement an encrypted filesystem. I've used it on and off over the last several years. In Kernel 2.2.x it needs the FIST kernel patch to work. FIST has been included in the 2.4.x kernel tree, so now all you need is cryptfs.

    Brian

    --
    Remember Lexington Green!
  99. (OT) Re:50 ways to leave your lover by mAsterdam · · Score: 1
  100. Compressed (E)FS? by MessageDrivenBean · · Score: 1

    What about compressed (encrypted) filesystems for Linux? I know that e2compr existed/exists for 2.2 but there hasn't been anything going on over there...

    --
    Quisque verborum suorum optimus interpres...