반응형 cryptography2 [개발/mfc] WINDOWS API를 이용한 암호화 간단 예제 [mfc] WINDOWS API를 이용한 암호화 간단 예제 #include "stdafx.h" #include #include #define MY_PASS "papaya" // 패스워드 #define KeyLen 0x0080 * 0x10000 // 128-bit int _tmain(int argc, _TCHAR* argv[]) { HCRYPTPROV hProv; HCRYPTHASH hHash; HCRYPTKEY hKey; BYTE pbData[100] = "TEST TEST TEST REAL TEST"; DWORD dwDataLen = (DWORD)strlen((char*)pbData) + 1; // CSP(Crystographic Service Provider) 핸들 얻기 if(!CryptAcquire.. 2011. 11. 8. [C#] 라이선스용 컴퓨터 유일키 생성 [C#] 라이선스용 컴퓨터 유일키 생성 Introduction For licensing purpose according to me the best way and secure way is to generate an unique key for client's machine and providing a corresponding license key for that key. For this purpose you can take help of the unique id of client's computer's motherboard, BIOS and processor's. When you get these IDs you can generate any key of your preferable format. Year a.. 2010. 9. 16. 이전 1 다음 반응형