2
3
4
5
6
7
8
9
10
11
12
13
14
15
16#ifndef ENCRYPTION_FUNCTIONS_H
17#define ENCRYPTION_FUNCTIONS_H
23 const int MAX_SIZE_CHAR = 0xFF;
30 void simpleEncrypt(
char* unencrypted,
char* encrypted,
char size,
const std::string &key);
37 void simpleDecrypt(
char* encrypted,
char* unencrypted,
char size,
const std::string &key);
49 void readFileBinarySize(
char buffer[MAX_SIZE_CHAR],
char* size_actual,
const std::string &filename);
Class to propagate CR3BP dynamics in characteristic units.
Definition ConfigurationWriter.cpp:18
void readFileBinarySize(char buffer[MAX_SIZE_CHAR], char *size_actual, const std::string &filename)
Function to read a buffer of bytes from a file.
Definition encryptionfunctions.cpp:79
void writeFileBinarySize(char *buffer, char buffer_size, const std::string &filename)
Function to write a buffer of bytes to a file, along with their size.
Definition encryptionfunctions.cpp:65
void simpleDecrypt(char *encrypted, char *unencrypted, char size, const std::string &key)
Function to decrypt a buffer of data – companion to simpleEncrypt.
Definition encryptionfunctions.cpp:47
void simpleEncrypt(char *unencrypted, char *encrypted, char size, const std::string &key)
Function to perform a simple encryption of a buffer of data.
Definition encryptionfunctions.cpp:24