| 5 | #include "../PluginManager/src/Encrypter.h" |
| 6 | |
| 7 | int _tmain(int /*argc*/, _TCHAR* /*argv*/[]) |
| 8 | { |
| 9 | Encrypter encrypter; |
| 10 | unsigned char keyBuffer[20]; |
| 11 | TCHAR hexKeyBuffer[500]; |
| 12 | |
| 13 | strcpy((char *)keyBuffer, "testPassword"); |
| 14 | |
| 15 | encrypter.encryptToHex(keyBuffer, strlen((char *)keyBuffer), hexKeyBuffer, 500); |
| 16 | _tprintf(_T("Generated hex encryption: %s\r\n"), hexKeyBuffer); |
| 17 | |
| 18 | unsigned char decBuffer[50]; |
| 19 | encrypter.decryptHex(hexKeyBuffer, decBuffer, 50); |
| 20 | printf("Decrypted: %s\r\n", decBuffer); |
| 21 | |
| 22 | getchar(); |
| 23 | return 0; |
| 24 | } |
| 25 |
nothing calls this directly
no test coverage detected