Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
Encryption Struct Reference

#include <Encryption.hpp>

Public Member Functions

 ~Encryption () noexcept=default
 
constexpr bool operator== (const Encryption &e) const noexcept
 
std::string toString () noexcept
 

Public Attributes

std::int64_t ide {}
 
Algorithm::Type algo {}
 
std::string title {}
 
std::string date_time {}
 
std::int64_t size {}
 
bool is_file {}
 
std::string file_ext {}
 

Static Public Attributes

static constexpr const std::string_view TABLE_NAME = "Encryptions"
 

Friends

std::ostream & operator<< (std::ostream &os, const Encryption &e) noexcept
 

Detailed Description

Encryption Model | Table: Encryptions

Definition at line 14 of file Encryption.hpp.

Constructor & Destructor Documentation

◆ ~Encryption()

Encryption::~Encryption ( )
defaultnoexcept

Member Function Documentation

◆ operator==()

constexpr bool Encryption::operator== ( const Encryption e) const
inlineconstexprnoexcept

Definition at line 28 of file Encryption.hpp.

◆ toString()

std::string Encryption::toString ( )
inlinenoexcept

Definition at line 38 of file Encryption.hpp.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const Encryption e 
)
friend

Definition at line 29 of file Encryption.hpp.

Member Data Documentation

◆ algo

Algorithm::Type Encryption::algo {}

algorithm enum id used for encryption e.g: 1=AES ...

Definition at line 18 of file Encryption.hpp.

◆ date_time

std::string Encryption::date_time {}

date & time saved by sqlite3

Definition at line 20 of file Encryption.hpp.

◆ file_ext

std::string Encryption::file_ext {}

file extension to remember file type on decryption

Definition at line 23 of file Encryption.hpp.

◆ ide

std::int64_t Encryption::ide {}

auto incremental id in range [0, SIZE_MAX]

Definition at line 17 of file Encryption.hpp.

◆ is_file

bool Encryption::is_file {}

whether its a text or file encryption

Definition at line 22 of file Encryption.hpp.

◆ size

std::int64_t Encryption::size {}

size of cipher in bytes

Definition at line 21 of file Encryption.hpp.

◆ TABLE_NAME

constexpr const std::string_view Encryption::TABLE_NAME = "Encryptions"
staticconstexpr

Definition at line 15 of file Encryption.hpp.

◆ title

std::string Encryption::title {}

encryption title, e.g: "this is my Email password"

Definition at line 19 of file Encryption.hpp.


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