Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
XOREncryptionTool Class Reference

#include <XOREncryptionTool.hpp>

Inheritance diagram for XOREncryptionTool:
Tool

Public Member Functions

 XOREncryptionTool ()=default
 
 ~XOREncryptionTool ()=default
 
void OnCreate () override
 
void OnDraw (Scene *parent) override
 
void OnDestroy () override
 
void OnEncryptButtonPressed ()
 
void OnDecryptButtonPressed ()
 
std::string XOREncrypt (const std::string &password, const std::string &buffer)
 
std::string XORDecrypt (const std::string &password, const std::string &cipher)
 
- Public Member Functions inherited from Tool
 Tool ()=default
 
virtual ~Tool ()=default
 

Detailed Description

Definition at line 11 of file XOREncryptionTool.hpp.

Constructor & Destructor Documentation

◆ XOREncryptionTool()

XOREncryptionTool::XOREncryptionTool ( )
default

◆ ~XOREncryptionTool()

XOREncryptionTool::~XOREncryptionTool ( )
default

Member Function Documentation

◆ OnCreate()

void XOREncryptionTool::OnCreate ( )
overridevirtual

Called when a tool is constructed

Implements Tool.

◆ OnDecryptButtonPressed()

void XOREncryptionTool::OnDecryptButtonPressed ( )

◆ OnDestroy()

void XOREncryptionTool::OnDestroy ( )
overridevirtual

Called when tool is destroyed

Implements Tool.

◆ OnDraw()

void XOREncryptionTool::OnDraw ( Scene parent)
overridevirtual

Called each frame to handle imgui draw

Parameters
parentpointer to ToolsScene

Implements Tool.

◆ OnEncryptButtonPressed()

void XOREncryptionTool::OnEncryptButtonPressed ( )

◆ XORDecrypt()

std::string XOREncryptionTool::XORDecrypt ( const std::string &  password,
const std::string &  cipher 
)

XOR Decrypts cipher string

Parameters
passwordEncryption key
cipherEncrypted buffer (aka cipher)
Returns
recovered buffer

◆ XOREncrypt()

std::string XOREncryptionTool::XOREncrypt ( const std::string &  password,
const std::string &  buffer 
)

XOR Encrypts buffer string (with no padding)

Parameters
passwordEncryption key
bufferBuffer string to encrypt
Returns
cipher (aka encrypted buffer)

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