0

I was told by my client that I need to encrypt a file using PGP with their public ASC key file they sent me. How can I do with WinSCP or another command line utility on Windows Server. I upload via SFTP SSH after I encrypt, but I need to encrypt file before sending to FTP server.

kyleb
  • 1,968
  • 7
  • 31
  • 53
  • See [Create pgp file with gpg from command line](https://stackoverflow.com/q/36736086/850848) and many others. – Martin Prikryl Dec 20 '20 at 08:35
  • Correct I looked at those but didn't quite find what I need. I need something like gpg.exe -encrypt -file "somefile.txt" -out "somefile.txt.pgp" -key "c:\mykey.asc" – kyleb Dec 21 '20 at 14:32
  • 1
    I found this so far. but was hoping for something that was shorter code https://blog.bitscry.com/2018/07/05/pgp-encryption-and-decryption-in-c/ – kyleb Dec 22 '20 at 00:50

0 Answers0