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.
-
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.– Frank ThomasCommented Jul 11, 2014 at 18:36
-
2Zip it with a password.– Ƭᴇcʜιᴇ007Commented Jul 11, 2014 at 19:19
-
@techie007 that's what I ended up doing– PurpleVermontCommented Jul 11, 2014 at 20:33
Add a comment
|
2 Answers
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
-
1The
--symmetric
option by default caches your password locally and you may want to clear it withgpg-connect-agent reloadagent /bye
Commented Aug 10, 2018 at 21:41
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.