//Define the key for Blowfish encryption algorithm
char key[CBlowfish::DEFAULTKEYSIZE] =
{
'v','e','r','y','l','o','n','g',
'p','a','s','s','w','o','r','d',
'0','1','2','3','4','5','6','7',
'9','8','7','7','7','2','2','1',
'0','0','0','1','1','2','2','2',
'2','3','5','6','5','6','3','3',
'2','2','1','1','1','7','7','7'
};
//Declare a local CBlowfish object
CBlowfish cipher( SLC_ENCRYPT, (const unsigned char*)key );
//Declare a dynamic CBlowfish object
CBlowfish* pCipher = new CBlowfish( SLC_DECRYPT, (const unsigned char*)key, 16 );
|