This class implements functions for binaries like functions allowing to hide information in the binary code (in the release build).
More...
#include <Binary.h>
|
| static std::wstring | decrypt (const wchar_t *encryptedValue, const size_t size, const wchar_t *key0, const wchar_t *key1) |
| | Decrypts a given string by a simple (not very secure) encrypt/decrypt method.
|
| static std::wstring | encrypt (const wchar_t *decryptedValue, const size_t size, std::wstring &key0, std::wstring &key1) |
| | Encrypts a given string by a simple (not very secure) encrypt/decrypt method.
|
This class implements functions for binaries like functions allowing to hide information in the binary code (in the release build).
Another possibility to hide a string in the binary code is the application of the HIDE_STRING_32 define.
- See also
- HIDE_STRING_32.
◆ decrypt()
| std::wstring Ocean::Binary::decrypt |
( |
const wchar_t * | encryptedValue, |
|
|
const size_t | size, |
|
|
const wchar_t * | key0, |
|
|
const wchar_t * | key1 ) |
|
inlinestatic |
Decrypts a given string by a simple (not very secure) encrypt/decrypt method.
- Parameters
-
| encryptedValue | The string to decrypt |
| size | The length of the encryptedValue value, with range [1, infinity) |
| key0 | The first key to be used for the decryption, with same length as value |
| key1 | The second key to be used for the decryption, with same length as value |
- Returns
- The decrypted value, if succeeded
◆ encrypt()
| std::wstring Ocean::Binary::encrypt |
( |
const wchar_t * | decryptedValue, |
|
|
const size_t | size, |
|
|
std::wstring & | key0, |
|
|
std::wstring & | key1 ) |
|
inlinestatic |
Encrypts a given string by a simple (not very secure) encrypt/decrypt method.
- Parameters
-
| decryptedValue | The string to encrypt |
| size | The length of the encrypted value, with range [1, infinity) |
| key0 | Resulting first key necessary for the decryption, with same length as value |
| key1 | Resulting second key necessary for the decryption, with same length as value |
The documentation for this class was generated from the following file: