Skip to content

Crypto lib crypt any files with password use windows crypto function

License

Notifications You must be signed in to change notification settings

oxfemale/Cryptone3

Repository files navigation

Cryptone3

Small DLL project for encrypt/decrypt (algorithm RC4) any files with a password with windows CSP + default key length. MSVC++

crypton3.dll use 2 function for encript and dectryp:

//Encrypt file with Password 
//If all ok, return true and false if no.
bool MyEncryptFile(LPTSTR pszSourceFile,LPTSTR pszDestinationFile,LPTSTR pszPassword);
//Dencrypt file with Password 
//If all ok, return true and false if no.
bool MyDecryptFile(LPTSTR pszSourceFile,LPTSTR pszDestinationFile,LPTSTR pszPassword);

Example use:

typedef BOOL ( *MyEncryptFileExp )( wchar_t*, wchar_t*, wchar_t* );
typedef BOOL ( *MyDecryptFileExp )( wchar_t*, wchar_t*, wchar_t* );

BOOL result = false;

MyEncryptFileExp MyEncryptFile = 0;
MyDecryptFileExp MyDecryptFile = 0;

HMODULE hModule = LoadLibraryExA("Cryptone3.dll", 0, 0x00000100);
	
MyEncryptFile = (MyEncryptFileExp)GetProcAddress(hModule, "MyEncryptFile");
MyDecryptFile = (MyDecryptFileExp)GetProcAddress(hModule, "MyDecryptFile");

result = MyEncryptFile(payload_path, target_path, password);
result = MyDecryptFile(payload_path, target_path, password);

FreeLibrary(hModule);

About

Crypto lib crypt any files with password use windows crypto function

Resources

License

Stars

Watchers

Forks

Packages

No packages published