How to encrypt a file on a Windows 7 machine and decrypt on Ubuntu

3

1

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.

PurpleVermont

Posted 2014-07-11T17:44:46.310

Reputation: 141

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 Thomas – 2014-07-11T18:36:52.547

2Zip it with a password. – Ƭᴇcʜιᴇ007 – 2014-07-11T19:19:41.440

@techie007 that's what I ended up doing – PurpleVermont – 2014-07-11T20:33:54.127

Answers

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

user1686

Posted 2014-07-11T17:44:46.310

Reputation: 283 655

1The --symmetric option by default caches your password locally and you may want to clear it with gpg-connect-agent reloadagent /bye – JosiahYoder-deactive except.. – 2018-08-10T21:41:13.113

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.

Renato

Posted 2014-07-11T17:44:46.310

Reputation: 96