nerdexam
CompTIA

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.

Security

Question

When attempting to send a file to another user securely with GPG, which of the following actions must be done?

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)
  • A
    3% (2)
  • B
    89% (59)
  • C
    6% (4)
  • D
    2% (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.

AEncrypt the file using your 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.

BEncrypt the file using their public key.Correct

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.

CEncrypt the file using your 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.

DEncrypt the file using their private key.

You cannot encrypt a file with someone else's private key, as private keys are kept secret by their owner.

ESign the file with your public key.

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

#GPG#asymmetric encryption#public key cryptography

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice