PictureCrypt  1.4.1
An image-steganography project
encryptdialog.h
Go to the documentation of this file.
1 #ifndef ENCRYPTDIALOG_H
2 #define ENCRYPTDIALOG_H
3 
4 #include <QDialog>
5 #include <QFileDialog>
6 #include <QImage>
7 #include <QMessageBox>
8 #include <QString>
9 
10 #include "../model/qaesencryption.h"
11 #include <QCryptographicHash>
12 
13 namespace Ui {
14 class EncryptDialog;
15 }
21 class EncryptDialog : public QDialog
22 {
23  Q_OBJECT
24 
25 public:
26  explicit EncryptDialog(QByteArray _data, QWidget *parent = 0);
27  ~EncryptDialog();
28 
29 public slots:
30  void on_fileButton_clicked();
31 
32  void on_buttonBox_accepted();
33 
34  void on_buttonBox_rejected();
35 
36  void on_bitsSlider_valueChanged(int value);
37 
38 public:
42  QByteArray data;
46  bool success;
50  QByteArray compr_data;
54  QString inputFileName;
58  long long int size;
62  QString key;
70  int val;
75  int bitsUsed;
79  QImage image;
80  QByteArray zip();
81 private:
82  Ui::EncryptDialog *ui;
83  void alert(QString text);
84 };
85 
86 #endif // ENCRYPTDIALOG_H
bool success
success Flag, if image was successfully selected and data was encrypted.
Definition: encryptdialog.h:46
Definition: aboutpc.h:6
QByteArray data
data Input data
Definition: encryptdialog.h:42
QImage image
image Inputted image
Definition: encryptdialog.h:79
bool goodPercentage
goodPercentage Flag if area of the used data via encryption is less than 70% of the area of the image...
Definition: encryptdialog.h:66
long long int size
size Size of the image in square pixels
Definition: encryptdialog.h:58
The EncryptDialog class Class to get the image and key to store secret info.
Definition: encryptdialog.h:21
int val
val Value of the slider
Definition: encryptdialog.h:70
int bitsUsed
bitsUsed Bits used per byte of pixel.
Definition: encryptdialog.h:75
QString key
key Key to be used for encryption in EncrytDialog::zip
Definition: encryptdialog.h:62
QByteArray compr_data
compr_data Compressed data, aka Output data.
Definition: encryptdialog.h:50
QString inputFileName
inputFileName Filename of the image.
Definition: encryptdialog.h:54