WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
encryptionfunctions.cpp File Reference
#include <fstream>
#include <iostream>
#include <cstring>
#include "encryptionfunctions.h"

Namespaces

namespace  warptwin
 Class to propagate CR3BP dynamics in characteristic units.

Functions

void warptwin::simpleEncrypt (char *unencrypted, char *encrypted, char size, const std::string &key)
 Function to perform a simple encryption of a buffer of data.
void warptwin::simpleDecrypt (char *encrypted, char *unencrypted, char size, const std::string &key)
 Function to decrypt a buffer of data – companion to simpleEncrypt.
void warptwin::writeFileBinarySize (char *buffer, char buffer_size, const std::string &filename)
 Function to write a buffer of bytes to a file, along with their size.
void warptwin::readFileBinarySize (char buffer[MAX_SIZE_CHAR], char *size_actual, const std::string &filename)
 Function to read a buffer of bytes from a file.