//Define the key for Rijndael (AES) encryption algorithm
char key[24] =
{
'v','e','r','y','l','o','n','g',
'p','a','s','s','w','o','r','d',
'a','a','d','e','t','u','g','t'
};
//Declare a local CRijndael object
CRijndael cipher( SLC_ENCRYPT, (const unsigned char*)key );
//Declare a dynamic CRijndael object
CRijndael* pCipher = new CRijndael( SLC_DECRYPT, (const unsigned char*)key, 24 );
|