MCPcopy Create free account
hub / github.com/bruderstein/nppPluginManager / _tmain

Function _tmain

EncryptionTest/EncryptionTest.cpp:7–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "../PluginManager/src/Encrypter.h"
6
7int _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

Callers

nothing calls this directly

Calls 2

encryptToHexMethod · 0.80
decryptHexMethod · 0.80

Tested by

no test coverage detected