Using Symmetric (Private) Key Encryption

As mentioned previously symmetric key encryption uses a single private key for both encryption and decryption. To provide support for this type of encryption, the BCL defines the System::Security::Cryptography::SymmetricAlgorithm abstract class, which is the base class for all symmetric algorithm classes. There are wrapper classes for several popular symmetric cryptographic algorithms, all of which derive from this SymmetricAlgorithm class:

  • System::Security::Cryptography::DES

  • System::Security::Cryptography::RC2

  • System::Security::Cryptography::Rijndael

  • System::Security::Cryptography::TripleDES

Essentially each of those classes are abstract base classes for their respective algorithms, and any class that implements ...

Get Extending MFC Applications with the .NET Framework 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.