This How To describes how to create a generic encryption library that can be used to encrypt and decrypt data using the following algorithms:
DES (Digital Encryption Standard)
Triple DES
Rijndael
RC2
For an example application that uses the class library created in this How To, see “How To: Store Encrypted Connection Strings in the Registry” in the Reference section of this book.