GSI

퍼온글 주소 : http://www.debuglab.com/knowledge/dataencrypt.html

-내용-
dwDataLen = strPassword.GetLength();
CopyMemory(lpData, (LPVOID)(LPCTSTR)strPassword, strPassword.GetLength());

// 암호화
CCrypt Crypt;
Crypt.Create((LPBYTE)(LPCTSTR)strPassword, strPassword.GetLength());
Crypt.Encrypt(lpData, dwDataLen);
Crypt.Destroy();

// 암호화된 데이터 해독
Crypt.Create((LPBYTE)(LPCTSTR)strPassword, strPassword.GetLength());
Crypt.Decrypt(lpData, dwDataLen);
lpData[dwDataLen] = '\0';
::MessageBox(NULL, (LPCTSTR)lpData, "", MB_OK);

소스코드 :





.
Posted by gsi
: