Digital Envelope
Wrapping data with symmetric and public key methods.
Learning Objectives
- Define a digital envelope.
- Explain why digital envelopes combine symmetric and public key methods.
- Describe the steps of creating and opening a digital envelope.
- Identify the advantage of digital envelopes over either method alone.
Explanation
A digital envelope is a 'key within a key': the message is encrypted with a fast symmetric key, and the symmetric key itself is encrypted with the recipient's public key. The recipient uses their private key to get the symmetric key, then uses it to decrypt the message.
Public key cryptography is computationally slow. If one used 128- or 256-bit keys to encode large documents — such as this chapter or the entire book — significant declines in transmission speeds and increases in processing time would occur. Symmetric key cryptography is computationally faster, but it has a weakness: the symmetric key must be sent to the recipient over insecure transmission lines.
One solution is to use the more efficient symmetric encryption and decryption for large documents, but public key cryptography to encrypt and send the symmetric key. This technique is called using a digital envelope. A digital envelope is a technique that uses symmetric encryption for large documents, but public key cryptography to encrypt and send the symmetric key.
In a digital envelope, a document is encrypted using a symmetric key. The symmetric key — which the recipient will require to decrypt the document — is itself encrypted using the recipient's public key. So we have a 'key within a key' (a digital envelope). The encrypted report and the digital envelope are sent across the Web.
The recipient first uses his or her private key to decrypt the symmetric key, and then uses the symmetric key to decrypt the report. This method saves time because both encryption and decryption are faster with symmetric keys. The digital envelope combines the speed of symmetric encryption with the secure key-exchange of public key encryption, making it the practical choice for large-scale e-commerce transactions.
Key Points & Important Terms
Key Points
- •Digital envelope = symmetric encryption for document + public key for the symmetric key.
- •Solves the speed problem of public key and the key-exchange problem of symmetric.
- •Creates a 'key within a key' structure.
- •Recipient decrypts the envelope with private key to get the symmetric key.
- •Then uses the symmetric key to decrypt the document.
- •Combines speed of symmetric + security of public key.
Important Terms
- Digital envelope
- A technique that uses symmetric encryption for large documents and public key cryptography to encrypt and send the symmetric key.
- Symmetric key
- The fast single key used to encrypt the actual document.
- Public key cryptography
- Used in a digital envelope to encrypt the symmetric key for secure key exchange.