Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What programs can be used to encrypt files that could subsequently be decrypted on any OS? For instance, it should then be possible to easily decrypt the encrypted files under Linux, Windows, OS X, etc.

So how can I encrypt files for maximum cross-platform compatibility?

share|improve this question
possible duplicate of How to encrypt external hard drive to be readable on any OS? – Lekensteyn May 17 '12 at 7:18
@Lekensteyn That question is about how to encrypt an entire hard drive, whereas this question is about encrypting files in general (and presumably the OP is interested in encrypting individual files or folders). There's some possible overlap in the answers, but as you can see from the answers here so far, this question covers territory that would be outside the scope of that one. – Eliah Kagan Aug 21 '12 at 6:02
Given all the FUD around TrueCrypt, is there a viable cross-platform alternative? – Καrτhικ Apr 10 '15 at 13:44
  • TrueCrypt can create mountable encrypted disk images

You can access TrueCrypt volumes on all three major OS. This is a disk encryption tool rather than a file encryption tool, so the choice of file system inside the disk image is important if you want to be able to mount the file system inside - chose a file system that works on all platforms you intend to use. FAT32 is probably the safest choice.

Note that in order to install the TrueCrypt driver on Windows, you will need to be an Administrator user, or gain the cooperation of one, for every workstation you wish to access a TrueCrypt volume on. In addition, any process with access to the mounted file system will be able to read your files in the clear, so you must trust all systems on which you mount your encrypted volume.

  • GnuPG can create individual encrypted files

If you can't use TrueCrypt, or don't like it's caveats, then you can encrypt individual files with GnuPG. Gpg4win provides easy to use Windows tools for GnuPG. While GnuPG will encrypt files at the simple "password" level, you may wish to read up a little on Public Key Cryptography.

share|improve this answer
Veracrypt is considered the successor to Truecrypt. – Flimm Jun 20 at 8:47

Use truecrypt, it works vor linux and windows and theres's even a mac os x version.

share|improve this answer
Veracrypt is considered the successor to Truecrypt. – Flimm Jun 20 at 8:47

For Windows if you want to be able to use the right click context menu without going through the pgp4win program window you can use Cryptophane along side pgp4win, makes life a little easier and more convenient just as kgpg for KDE and nautilus-seahorse or the new version of seahorse-plugins does for Gnome.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.