Security

An administrator has imported a colleague's public key into her keyring and must send a file named report.csv so that only the colleague can read it. No passphrase is to be shared between them. Which command meets this requirement?

Show the answer

Correct answerA. gpg --encrypt --recipient colleague@example.com report.csv

Encrypting with --encrypt and --recipient uses the colleague's public key, so only their private key can decrypt the file and no shared passphrase is needed. Symmetric mode is tempting, but it relies on a passphrase that both parties must know, which the scenario rules out.