我需要使用 PHP 中的系统调用在.gnupg的发布中附加我的公钥(在变量中) 。什么系统调用可用于此?
$gpg = system('gpg --recipient userid --output outfile.asc --armor --encrypt hello.txt', $retvalue);//calling gpg encrypt command using system call
echo '
Output: ' . $gpg . '
Return value: ' . $retvalue;
如何将我的公钥传递给这个 GPG 加密命令?