-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from mktums/patch-1
Update README.md
- Loading branch information
Showing
1 changed file
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,17 +4,21 @@ MSVC++ | |
|
||
crypton3.dll use 2 function for encript and dectryp: | ||
|
||
```cpp | ||
//Encrypt file with Password | ||
//If all ok, return true and false if no. | ||
bool MyEncryptFile(LPTSTR pszSourceFile,LPTSTR pszDestinationFile,LPTSTR pszPassword); | ||
``` | ||
```cpp | ||
//Dencrypt file with Password | ||
//If all ok, return true and false if no. | ||
bool MyDecryptFile(LPTSTR pszSourceFile,LPTSTR pszDestinationFile,LPTSTR pszPassword); | ||
|
||
``` | ||
|
||
Example use: | ||
|
||
```cpp | ||
typedef BOOL ( *MyEncryptFileExp )( wchar_t*, wchar_t*, wchar_t* ); | ||
typedef BOOL ( *MyDecryptFileExp )( wchar_t*, wchar_t*, wchar_t* ); | ||
|
||
|
@@ -25,15 +29,15 @@ MyDecryptFileExp MyDecryptFile = 0; | |
|
||
HMODULE hModule = LoadLibraryExA("Cryptone3.dll", 0, 0x00000100); | ||
|
||
MyEncryptFile = (MyEncryptFileExp)GetProcAddress(hModule, "MyEncryptFile"); | ||
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); | ||
``` | ||
|
||
twitter: @oxfemale | ||
telegram: @BelousovaAlisa | ||
email: [email protected] | ||
* twitter: @oxfemale | ||
* telegram: @BelousovaAlisa | ||
* email: [email protected] |