CEncryption

CEncryption - Data encryption using Microsoft’s Crypto API
This class uses the Microsoft Crypto API to encrypt or decrypt a specified text string.
Only the basic features of the Crypto API have been used to create this class.
I’ve used MD5 as the hashing algorithm and the RC4 stream for the encryption algorithm.

The class has the following methods:

CString EncryptString(LPCTSTR lpszText);

where lpszText is the string you want to encrypt. The return value is the encrypted string.

CString DecryptString(LPCTSTR lpszText);

where lpszText is the string you want to decrypt. The return value is the decrypted (original) string.

For a much simpler type of encryption check out my CSimpleEncryption class.


Download demo executable

Download source code
This class is part of the Pablo Software Solutions MFC Extension Package - Classes Edition
 

[Home] [Products] [Source Code] [Downloads] [Support]

© 2015 - Pablo Software Solutions
All rights reserved.