3

I need to encrypt a file on a Windows 7 machine, and then decrypt it on an Ubuntu machine. What is the simplest way of doing this, preferably with tools that are likely to already be installed on the two machines. I have cygwin on the Windows machine if needed.

3
  • I know its end of life, but I've yet to see anything that effectively replaces truecrypt. if your adversary is not a nation-state or large company engaged in industrial espionage, truecrypt 7.1a is probably still sufficient to your needs. Commented Jul 11, 2014 at 18:36
  • 2
    Zip it with a password. Commented Jul 11, 2014 at 19:19
  • @techie007 that's what I ended up doing Commented Jul 11, 2014 at 20:33

2 Answers 2

4

OpenPGP using the GnuPG tools will likely be easiest. (GnuPG for Windows comes in both native and Cygwin forms.)

To encrypt with a password:

gpg --symmetric myfile.txt

To decrypt:

gpg --decrypt myfile.txt.gpg
1
  • 1
    The --symmetric option by default caches your password locally and you may want to clear it with gpg-connect-agent reloadagent /bye Commented Aug 10, 2018 at 21:41
0

I prefer and think that is more easy to do it using one zip archiever with pasword like winrar ow 7zip on windows, copy the file and decompress it in linux.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .