-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
2,195 additions
and
3,028 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ bin/ | |
lib/boost/ | ||
*.pro.user* | ||
*.cppcheck | ||
*.autosave | ||
lib/qtcryptohash/ | ||
*.7z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef BASE64DIALOG_HPP | ||
#define BASE64DIALOG_HPP | ||
|
||
#include <memory> | ||
|
||
#include "ui_base64dialog.h" | ||
|
||
#include "filebase64calculator.hpp" | ||
|
||
class Base64Dialog : public QDialog, private Ui::Base64Dialog { | ||
Q_OBJECT | ||
|
||
public: | ||
explicit Base64Dialog( QString fileName, QWidget* parent = 0 ); | ||
virtual ~Base64Dialog(); | ||
|
||
private slots: | ||
void on_complete( QByteArray base64 ); | ||
|
||
private: | ||
QString m_filename; | ||
std::unique_ptr< FileBase64Calculator > m_base64calculator; | ||
|
||
protected: | ||
void closeEvent( QCloseEvent* event ) Q_DECL_OVERRIDE; | ||
}; | ||
|
||
#endif // BASE64DIALOG_HPP |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef HASHER_H | ||
#define HASHER_H | ||
|
||
#include <QString> | ||
|
||
#include "boost/crc.hpp" | ||
|
||
using boost::crc_optimal; | ||
using boost::crc_ccitt_type; | ||
|
||
// CRC16-CCITT (X.25) - the same used by qChecksum | ||
typedef crc_optimal< 16, 0x1021, 0xffff, 0xffff, true, true > boost_crc16; | ||
|
||
// CRC-32 (PKZIP) - http://reveng.sourceforge.net/crc-catalogue/17plus.htm#crc.cat-bits.32 | ||
typedef crc_optimal< 32, 0x04c11db7, 0xffffffff, 0xffffffff, true, true > boost_crc32; | ||
|
||
// CRC-64 (XZ) - http://reveng.sourceforge.net/crc-catalogue/17plus.htm#crc.cat-bits.64 | ||
typedef crc_optimal< 64, 0x42f0e1eba9ea3693, 0xffffffffffffffff, 0xffffffffffffffff, true, true > boost_crc64; | ||
|
||
struct QChecksum { | ||
enum Algorithm { CRC16, CRC32, CRC64 }; | ||
static quint64 checksum( const QByteArray msg , Algorithm algorithm ); | ||
}; | ||
|
||
#endif // HASHER_H |
Oops, something went wrong.