Creating a Cryptographic Scheme
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Creating a Cryptographic Scheme 

The cryptographic components of the .NET Framework can be combined to create different schemes to encrypt and decrypt data.

A simple cryptographic scheme for encrypting and decrypting data might specify the following steps:

  1. Each party generates a public/private key pair.

  2. The parties exchange their public keys.

  3. Each party generates a secret key for TripleDES encryption, for example, and encrypts the newly created key using the other's public key.

  4. Each party sends the data to the other and combines the other's secret key with its own, in a particular order, to create a new secret key.

  5. The parties then initiate a conversation using symmetric encryption.

Creating a cryptographic scheme is not a trivial task. For more information on using cryptography, see the Cryptography topic in the Platform SDK documentation at http://msdn.microsoft.com/library.

See Also

Show:
© 2016 Microsoft