does anyone have a reference of help manual for creating a script to simply encrypt a file using a key and place in a directory? Sadly i see lots of people asking something similar with no answer, so any info would be great
Please consider using GPGME instead of calling gpg directly. GPGME offers a stable, backend-independent interface for many cryptographic operations.
The wiki has hints on this in https://wiki.gnupg.org/APIs and it only makes sense to use GPGME once the operations need to be very robust or controlled.
Does this already help you?
(If you notice old questions that are unanswered about this topic, let us know. we make an effort to answer all questions.)