Skip to content

Commit

Permalink
Merge pull request #1 from mktums/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
oxfemale authored Nov 3, 2017
2 parents 2718b29 + eaa6c48 commit 0c89d40
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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* );

Expand All @@ -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]

0 comments on commit 0c89d40

Please sign in to comment.