2020-09-30 16:53:55 +02:00

12 lines
613 B
C

//Prototype of crypto functions
//The limitation of these crypto functions is 128 characters, not include
//NULL terminator.
//You msut use the same keys to Encrypt and Decrypt.
//sizeof(lpszOutput) must be more than double of sizeof(lpszInput)
//Just alloc 256 bytes for it will be safe
//aKey must contain one key string more than 8 characters
int WINAPI EncryptString(LPSTR lpszInput, LPSTR lpszOutput,
unsigned char far *aKey, LPCSTR lpszKey2);
int WINAPI DecryptString(LPSTR lpszInput, LPSTR lpszOutput,
unsigned char far *aKey, LPCSTR lpszKey2);