Skip to content

Commit 34c742a

Browse files
committed
Merge branch 'release/v0.3.1'
2 parents ba39b74 + 31948c3 commit 34c742a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2195
-3028
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ bin/
44
lib/boost/
55
*.pro.user*
66
*.cppcheck
7+
*.autosave
8+
lib/qtcryptohash/
9+
*.7z

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
GNU GENERAL PUBLIC LICENSE
1+
GNU GENERAL PUBLIC LICENSE
22
Version 2, June 1991
33

44
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>

MrHash.pro

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ TEMPLATE = app
1010

1111
contains(QT_ARCH, i386) {
1212
PLATFORM = x86
13-
TARGET = mrhash
1413
} else {
1514
PLATFORM = x64
16-
TARGET = mrhash64
15+
ARCH_SUFFIX = 64
1716
}
1817

18+
TARGET = mrhash$${ARCH_SUFFIX}
19+
1920
VPATH += ./src/ \
2021
./include/ \
2122
./lib/ \
@@ -25,15 +26,38 @@ VPATH += ./src/ \
2526
INCLUDEPATH += ./include/ \
2627
./lib/
2728

28-
SOURCES += main.cpp mainwindow.cpp about.cpp \
29-
globalstuff.cpp tiger.cpp rmd160.cpp haval.cpp \
30-
qhasher.cpp fileinfowidget.cpp filehashcalculator.cpp
29+
SOURCES += \
30+
src/main.cpp \
31+
src/mainwindow.cpp \
32+
src/about.cpp \
33+
src/globalstuff.cpp \
34+
src/haval.cpp \
35+
src/qextrahash.cpp \
36+
src/fileinfowidget.cpp \
37+
src/filehashcalculator.cpp \
38+
src/util.cpp \
39+
src/crc.cpp \
40+
src/fileiconwidget.cpp \
41+
src/base64dialog.cpp \
42+
src/filebase64calculator.cpp
43+
3144

32-
HEADERS += mainwindow.hpp about.hpp \
33-
bithelp.h globalstuff.h tiger.h rmd160.h haval.h err.h \
34-
qhasher.hpp fileinfowidget.hpp filehashcalculator.hpp
45+
HEADERS += \
46+
include/mainwindow.hpp \
47+
include/about.hpp \
48+
include/haval.hpp \
49+
include/qextrahash.hpp \
50+
include/hashalgorithm.hpp \
51+
include/fileinfowidget.hpp \
52+
include/filehashcalculator.hpp \
53+
include/globalstuff.hpp \
54+
include/util.hpp \
55+
include/crc.hpp \
56+
include/fileiconwidget.hpp \
57+
include/base64dialog.hpp \
58+
include/filebase64calculator.hpp
3559

36-
FORMS += mainwindow.ui about.ui fileinfowidget.ui
60+
FORMS += mainwindow.ui about.ui fileinfowidget.ui fileiconwidget.ui base64dialog.ui
3761

3862
RESOURCES += res/icon.qrc res/translations.qrc
3963

@@ -54,10 +78,12 @@ UI_DIR = ./$${BUILD}/.ui
5478

5579
MAJOR_VER = 0
5680
MINOR_VER = 3
57-
PATCH_VER = 0
81+
PATCH_VER = 1
5882
VERSION = $${MAJOR_VER}.$${MINOR_VER}.$${PATCH_VER}
5983
DEFINES += "MAJOR_VER=$${MAJOR_VER}" "MINOR_VER=$${MINOR_VER}" "PATCH_VER=$${PATCH_VER}"
6084

85+
LIBS += -L$$PWD/lib/qtcryptohash/bin/$${PLATFORM}/$${BUILD}/ -lQtCryptoHash$${ARCH_SUFFIX}
86+
DEFINES += QTCRYPTOHASH_STATIC
6187
######################## OS DEPENDENT OPTIONS ########################
6288
win32 {
6389
# CONTENT OF THE RC FILE #

README.md

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
1-
# Mr. Hash
2-
Mr. Hash is a cross-platform tool for calculating the hashes of files and plain texts.
1+
# Mr. Hash [![Build Status](https://ci.appveyor.com/api/projects/status/t7q9r8489kdkpfnr?svg=true&passingText=Build%20OK&pendingText=Building...&failingText=Build%20Failed")](https://ci.appveyor.com/project/rikyoz/mrhash)<img src="/res/icon.png" width="40px" height="40px" align="right" />
32

4-
[![Build status](https://ci.appveyor.com/api/projects/status/t7q9r8489kdkpfnr?svg=true&passingText=build%20OK%20&pendingText=building...%20&failingText=build%20failed%20)](https://ci.appveyor.com/project/rikyoz/mrhash) ![](http://img.shields.io/badge/version-v0.3.0-blue.svg?style=flat) ![](https://img.shields.io/badge/platform-windows%20|%20linux%20|%20mac-red.svg?style=flat) ![](http://img.shields.io/badge/architecture-x86%20|%20x64-yellow.svg?style=flat) ![](http://img.shields.io/badge/license-GPL%20v2-lightgrey.svg?style=flat)
3+
**Mr. Hash** is a cross-platform tool for calculating the hashes of files and plain texts.
4+
5+
[![](http://img.shields.io/badge/version-v0.3.1-blue.png?style=flat)](https://github.com/rikyoz/mrhash/releases/latest)
6+
![](https://img.shields.io/badge/platform-Windows%20|%20Linux%20|%20Mac%20OS%20X-red.png?style=flat)
7+
![](http://img.shields.io/badge/architecture-x86%20|%20x64-yellow.png?style=flat)
8+
[![](http://img.shields.io/badge/license-GNU%20GPL%20v2-lightgrey.png?style=flat)](/LICENSE)
9+
10+
## Features
11+
+ Supports hashing of **files** and **plain text**
12+
+ Calculates the most used **hashing algorithms**, such as **MD5**, **SHA1** and [**many others**](#supported-algorithms)
13+
+ Supports **CRC16**, **CRC32** and **CRC64** checksum algorithms
14+
+ Simple and easy-to-use GUI
15+
+ Cross platform: it runs on **Windows**, **Linux** and **Mac OS X**
516

617
## Screenshots
7-
![](/doc/img/screenshot0-v0.3.png)
8-
![](/doc/img/screenshot1-v0.3.png)
18+
<p align="center">
19+
<img src="https://raw.github.com/rikyoz/mrhash/screenshots/doc/img/v0.3.1/screenshot0.png" /><br/>
20+
<img src="https://raw.github.com/rikyoz/mrhash/screenshots/doc/img/v0.3.1/screenshot1.png" />
21+
</p>
922

1023
## Supported Algorithms
1124
+ MD4
@@ -14,12 +27,23 @@ Mr. Hash is a cross-platform tool for calculating the hashes of files and plain
1427
+ SHA-224, SHA-256, SHA-384, SHA-512
1528
+ SHA3-224, SHA3-256, SHA3-384, SHA3-512
1629
+ Tiger
17-
+ HAVAL
18-
+ RIPEMD
30+
+ HAVAL-128, HAVAL-160, HAVAL-192, HAVAL-224, HAVAL-256
31+
+ RIPEMD-160
1932
+ CRC16
2033
+ CRC32
2134
+ CRC64
2235

23-
<p align="center">
24-
<img src="/res/icon.png" />
25-
</p>
36+
## License (GPL v2)
37+
This program is free software; you can redistribute it and/or modify
38+
it under the terms of the GNU General Public License as published by
39+
the Free Software Foundation; either version 2 of the License, or
40+
(at your option) any later version.
41+
42+
This program is distributed in the hope that it will be useful,
43+
but WITHOUT ANY WARRANTY; without even the implied warranty of
44+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45+
GNU General Public License for more details.
46+
47+
You should have received a copy of the GNU General Public License along
48+
with this program; if not, write to the Free Software Foundation, Inc.,
49+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

appveyor.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,56 @@
1-
version: 0.3.0-build{build}
1+
version: 0.3.1-build{build}
22
skip_non_tags: true
33
os: Windows Server 2012 R2
44
shallow_clone: true
55

66
branches:
77
only:
88
- master
9+
- develop
910

1011
configuration:
1112
- release
1213

1314
environment:
14-
mrhash_version: 0.3.0
15+
mrhash_version: 0.3.1
1516
qt_version: 5.5
1617
boost_dir: C:\Libraries\boost_1_59_0
1718
msvc_dir: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC
1819

1920
matrix:
2021
#MSVC x86
2122
- name: win32
22-
platform: x86
23+
arch: x86
2324
target: mrhash.exe
2425
qt_dir: C:\Qt\%qt_version%\msvc2013\bin
2526

2627
#MSVC x64
2728
- name: win64
28-
platform: x64
29+
arch: x64
2930
target: mrhash64.exe
3031
qt_dir: C:\Qt\%qt_version%\msvc2013_64\bin
3132

3233
init:
33-
- set PATH=%PATH%;%msvc_dir%;%qt_dir%;
34-
- vcvarsall.bat %platform%
35-
36-
build_script:
34+
- set PATH=%PATH%;%msvc_dir%;%qt_dir%
35+
- vcvarsall.bat %arch%
36+
37+
install:
3738
- mkdir lib
3839
- mklink /j lib\boost %boost_dir%\boost
40+
- cd lib
41+
- mkdir qtcryptohash
42+
- appveyor DownloadFile https://github.com/rikyoz/QtCryptoHash/releases/download/v0.1.0/QtCryptoHash-v0.1.0-msvc2013-win32-static.7z -FileName qtcryptohash-static.7z
43+
- 7z x qtcryptohash-static.7z -oqtcryptohash/ -aoa
44+
- appveyor DownloadFile https://github.com/rikyoz/QtCryptoHash/releases/download/v0.1.0/QtCryptoHash-v0.1.0-msvc2013-win64-static.7z -FileName qtcryptohash64-static.7z
45+
- 7z x qtcryptohash64-static.7z -oqtcryptohash/ -aoa
46+
- cd ..
47+
48+
build_script:
3949
- mkdir build
4050
- cd build
41-
- qmake ..\MrHash.pro
51+
- qmake ..\MrHash.pro "CONFIG += release"
4252
- nmake release
43-
- cd ..\bin\%platform%\release
53+
- cd ..\bin\%arch%\release
4454
- windeployqt %target% --release --no-translations --no-svg --no-angle --no-system-d3d-compiler --no-quick-import
4555
- 7z a -t7z mrhash-v%mrhash_version%-bin-%name%.7z *
4656

@@ -52,8 +62,8 @@ test: off
5262

5363
deploy:
5464
provider: GitHub
55-
release: Mr. Hash v%mrhash_version%
56-
description: ''
65+
release: $(APPVEYOR_REPO_TAG_NAME)
66+
description: 'Binaries of Mr. Hash v%mrhash_version%'
5767
auth_token:
5868
secure: 4V5xJQT+iVPUhK05TBLkNkLY8HTArZ+omH394hfXqQuxfrkaQqnR8132rDnB/HVm
5969
artifact: /.*\.7z/

doc/img/screenshot.png

-73.9 KB
Binary file not shown.

doc/img/screenshot0-v0.3.png

-54.7 KB
Binary file not shown.

doc/img/screenshot1-v0.3.png

-63.8 KB
Binary file not shown.

include/base64dialog.hpp

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#ifndef BASE64DIALOG_HPP
2+
#define BASE64DIALOG_HPP
3+
4+
#include <memory>
5+
6+
#include "ui_base64dialog.h"
7+
8+
#include "filebase64calculator.hpp"
9+
10+
class Base64Dialog : public QDialog, private Ui::Base64Dialog {
11+
Q_OBJECT
12+
13+
public:
14+
explicit Base64Dialog( QString fileName, QWidget* parent = 0 );
15+
virtual ~Base64Dialog();
16+
17+
private slots:
18+
void on_complete( QByteArray base64 );
19+
20+
private:
21+
QString m_filename;
22+
std::unique_ptr< FileBase64Calculator > m_base64calculator;
23+
24+
protected:
25+
void closeEvent( QCloseEvent* event ) Q_DECL_OVERRIDE;
26+
};
27+
28+
#endif // BASE64DIALOG_HPP

include/bithelp.h

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)