Enveloping Messages

One of the keys to signing and encrypting messages is the packaging of the signed and encrypted messages. You already know how to encrypt a message, but what you don't know is how to package the encrypted message with the certificate serial number so that the recipient can know which key pair to use to decrypt the message.

Along with formatting the encrypted message correctly, there is a practice of enclosing a signed message within an encrypted message. This practice is known as enveloping, in which only the intended recipient can decrypt the envelope and then read and verify the signed message.

Encrypting a Message

When you want to encrypt a message using the public key in the recipient's certificate, you can ...

Get Developing Secure Applications with Visual Basic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.