I can use GnuPG to encrypt a file using a PuTTY command line.
However, it won't encrypt from my PHP website (using this line):
system("/usr/bin/gpg --encrypt -ao $crypted -r 'Rhiannon <email@example.com>' $plainTxt");
This is probably because php is running as a different user.
I need to create a keyring for the user who owns the php process and fetch the necessary keys to encrypt the data.
Can anybody guide me through this or point me in the direction of good documentation?
I am using Linux command line on shared hosting.