我正在尝试STDIN使用gpg. 我正在使用以下内容:
echo 'plaintext' | gpg -c -o output.gpg
Run Code Online (Sandbox Code Playgroud)
但是,我看到以下结果:
gpg: problem with the agent: Inappropriate ioctl for device
gpg: error creating passphrase: Operation cancelled
gpg: symmetric encryption of '[stdin]' failed: Operation cancelled
Run Code Online (Sandbox Code Playgroud)
我将如何仅STDIN使用gpg对称密码进行加密?我在 MacOS 和GPG v2.2.13.