嗨,我正在使用 gpg 在 linux 中解密文件,我正在使用
shell_exec("gpg --batch --passphrase-file $passphrase_file -d $encrypted_file");
解密文件,但我收到以下错误。
gpg: gpg-agent is not available in this session
gpg: can't query passphrase in batch mode
gpg: Invalid passphrase; please try again ...
gpg: can't query passphrase in batch mode
gpg: Invalid passphrase; please try again ...
gpg: can't query passphrase in batch mode