Rise
The Vieneo Province
Cryptography.h
Go to the documentation of this file.
1 #pragma once
2 
3 //#define _WIN32_WINNT 0x0400
4 
5 #define MY_ENCRYPT CALG_RC4
6 //#define MY_ENCRYPT CALG_DES
7 
8 #define MY_CRYPTKEY "0N*1JX^¶G" // 48 78 24 49 74 88 94 20 71
9 
11 {
12 public:
13  static bool SetupCryptoClient();
14  static bool EncryptString(char* szPassword, char* szEncryptPwd, char *szKey);
15  static bool DecryptString(char* szEncryptPwd, char* szPassword, char *szKey);
16 };
static bool EncryptString(char *szPassword, char *szEncryptPwd, char *szKey)
static bool DecryptString(char *szEncryptPwd, char *szPassword, char *szKey)
static bool SetupCryptoClient()