#include <XOREncryptionTool.hpp>
Definition at line 11 of file XOREncryptionTool.hpp.
◆ XOREncryptionTool()
XOREncryptionTool::XOREncryptionTool |
( |
| ) |
|
|
default |
◆ ~XOREncryptionTool()
XOREncryptionTool::~XOREncryptionTool |
( |
| ) |
|
|
default |
◆ 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
-
Implements Tool.
◆ OnEncryptButtonPressed()
void XOREncryptionTool::OnEncryptButtonPressed |
( |
| ) |
|
◆ XORDecrypt()
std::string XOREncryptionTool::XORDecrypt |
( |
const std::string & |
password, |
|
|
const std::string & |
cipher |
|
) |
| |
XOR Decrypts cipher string
- Parameters
-
password | Encryption key |
cipher | Encrypted 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
-
password | Encryption key |
buffer | Buffer string to encrypt |
- Returns
- cipher (aka encrypted buffer)
The documentation for this class was generated from the following file: