Decrypt a file (command line)
After downloading an encrypted file by Public Key using SFTP Downloader, you need to decrypt it with your saved Private Key. This article will guide you how to do so.
First of all, let’s check out the version of GPG on your system and some interesting tidbits. Run the following command.
- Open Terminal.
--decryptoption. You can also optionally specify the output file with
--outputoption like below.
$ gpg --output normal.mp3 --decrypt decrypted.mp3
- You will be required to key in the passphrase
- Once you enter your passphrase. GPG will decrypt your selected file.
gpg: encrypted with 2048-bit RSA key, ID 7B6BE6A7, created 2019-09-23
gpg: Signature made Wed 25 Sep 2019 09:57:32 AM ICT using RSA key ID E89C8EA6