Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
DecryptFileScene.hpp
Go to the documentation of this file.
1 #pragma once
2 #include "Scene.hpp"
4 
5 
7 class DecryptFileScene : public Scene {
8  public: /* Constructors / Destructor */
10  virtual ~DecryptFileScene() = default;
11 
12  private: /* Overrides */
13  void OnCreate() override;
14  [[maybe_unused]] void OnUpdate(const float& dt) override;
15  void OnDraw() override;
16  void OnImGuiDraw() override;
17  void OnEvent(Event& event) override;
18  void OnDestroy() override;
19 
20  private: /* Callbacks */
21  //void OnBrowseInFileButtonPressed();
22  //void OnBrowseOutFileButtonPressed();
23  void OnBrowseInFileButtonPressed(); // browse file to decrypt
24  void OnBrowseOutFileLocationButtonPressed(); // browse decrypted file location
25  void OnDecryptButtonPressed();
26  void OnBackButtonPressed();
27 
28  private:
29  Algorithm::Type m_type; // Algorithm type, AES, ChaCha, TripleDES... to help us create polymorphic algorithm
30  std::string m_in_filename; // In File to decrypt
31  std::string m_out_filename; // Out File to be recover
32  std::string m_password; // encryption password
33 
34  // Rsa special stuff
35  std::string m_rsa_private_key; // Only private key is needed for decryption (pub key used for verification)
36  std::size_t m_selected_rsa_keySize = 4096;
37 };
#define NS_ENIGMA_BEGIN
Enable/Disable Assertions.
Definition: Macros.hpp:13
#define NS_ENIGMA_END
Definition: Macros.hpp:14
virtual ~DecryptFileScene()=default
Definition: Event.hpp:66
Definition: Scene.hpp:20