Ocean
Ocean::Binary Class Reference

This class implements functions for binaries like functions allowing to hide information in the binary code (in the release build). More...

Static Public Member Functions

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. More...
 
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. More...
 

Detailed Description

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.

Member Function Documentation

◆ 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
encryptedValueThe string to decrypt
sizeThe length of the encryptedValue value, with range [1, infinity)
key0The first key to be used for the decryption, with same length as value
key1The 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
decryptedValueThe string to encrypt
sizeThe length of the encrypted value, with range [1, infinity)
key0Resulting first key necessary for the decryption, with same length as value
key1Resulting second key necessary for the decryption, with same length as value

The documentation for this class was generated from the following file: