A private key is the secret half of a related public–private key pair. The public key can be shared; the private key must remain confidential to its owner. In asymmetric encryption, the private key lets its owner decrypt data encrypted with the matching public key. It is also used to create digital signatures. section 14.2
Sending a confidential message
Alice encrypts a message using Bob’s public key. Bob then uses his private key to decrypt it. Alice does not need a copy of Bob’s private key—and neither should anyone else. section 14.2.2
For a digital signature, the direction changes: the sender uses their own private key to sign, and others use the matching public key to verify. A document signature is made from a hash of the document. Verification compares that hash with a fresh hash of the received document, helping detect changes and showing that the signer’s private key was used. section 14.2.5
|
Property
|
Method
|
|
Confidentiality
|
• Sender
encrypts with the receiver's public key
• Receiver
decrypts with their own private key
|
|
Non-repudiation
|
• Sender signs
with their own private key
• Receiver
verifies with the sender's public key
|
Compare the key roles: a recipient’s private key decrypts a confidential message, while a sender’s private key signs one. section 14.2.2
Keeping the key secret is a practical security requirement. If an attacker obtains a private key, they may decrypt confidential messages or forge signatures. Protecting the private key is not the whole trust problem: public key infrastructure (PKI) uses digital certificates to link a public key to a verified identity, helping others check whose key they are using. section 14.2.6 section 14.2.5













