16#ifndef ENCRYPTION_FUNCTIONS_H
17#define ENCRYPTION_FUNCTIONS_H
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);
Class to propagate CR3BP dynamics in characteristic units.
Definition statistics.hpp:22
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
const int MAX_SIZE_CHAR
Definition encryptionfunctions.h:23
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