LX0-104 · Question #543
When attempting to send a file to another user securely with GPG, which of the following actions must be done?
The correct answer is B. Encrypt the file using their public key.. To securely send an encrypted file to another user with GPG, you must encrypt the file using the recipient's public key.
Question
Options
- AEncrypt the file using your public key.
- BEncrypt the file using their public key.
- CEncrypt the file using your private key.
- DEncrypt the file using their private key.
- ESign the file with your public key.
How the community answered
(66 responses)- A3% (2)
- B89% (59)
- C6% (4)
- D2% (1)
Why each option
To securely send an encrypted file to another user with GPG, you must encrypt the file using the recipient's public key.
Encrypting with your own public key would mean only your private key could decrypt it, which is not useful for sending a file securely to another user.
When encrypting a file for another user with GPG, you use their public key because only their corresponding private key can decrypt the data, ensuring confidentiality and that only the intended recipient can read the file. This asymmetric encryption principle guarantees that even if the encrypted file is intercepted, it remains unreadable to anyone without the recipient's private key.
Encrypting with your private key is typically used for digital signing to prove authenticity and integrity, not for ensuring confidentiality for another recipient.
You cannot encrypt a file with someone else's private key, as private keys are kept secret by their owner.
Signing a file with your public key is incorrect; you sign with your private key to prove authenticity and integrity, while the recipient verifies with your public key.
Concept tested: GPG asymmetric encryption principles
Source: https://gnupg.org/gph/en/manual/x110.html
Topics
Community Discussion
No community discussion yet for this question.