Here by using the two classes the first one is CEncrypt and CRegister you can encrypt and decrypt a registry key. The encryption part is useful when you want to store any important information like user names and passwords in the registry. The encrypt is declared in <wincrypt.h> syntax. For example see the code below -
Code:
#define _WIN32_WINNT 0x0400
#include "wincrypt.h"
Here we will use CryptDeriveKey for the purpose of encryption and decryption. You will need to configure some settings in CEncrypt class before calling the above function. Download the below source code. It will be help to you.
Bookmarks