简体   繁体   中英

c# application that runs GPG commands

I am currently trying to create a c# service application that uses service to encrypt files and decrypt files using gpg commands automatically. Since there will be little to no user interaction, how do I implement inputting paths and file names to the service? Currently, I did a simple hard-coded gpg command in the service that runs the encryption.

A fairly simple option would be to configure input and output directories in your app.config and poll the input periodically using the Timer class.

A slightly more complicated option would be to host a simple WCF service inside a win service that took input and output paths as parameters.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM