User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Find sha1 & md5 check sums - QT4 - C++ - program & source

Fri May 17, 2013 3:39 pm

Hello,

If these are of any use:-

Attached, source for compiling under QT4/C++, run file and a layout picture.

This is a program to find the sha1 and/or md5 checksums of any program/file on your system.
I’m fed up with cd’ing and then typing the command in a terminal, I made a simple GUI
program to do this.
If you don’t trust the run file, compile it yourself in QT4.

I checked the sum against the downloaded wheezy hf zip file, took about
50 seconds (900mhz pi) and even agreed with the web-site checksum.

Browse for a file, select which sums you want (sha1, md5 or both), calculate then compare
to a pasted checksum (hash, you can copy and paste directly from a browser).
The run file was compiled on wheezy hard float, I don't know if will run on any other system.
You will have to change ownership and permissions on the run file.

I’m a novice at C++ & QT4, so I’m sure the source can be drastically improved.

Regards

sha1-19-5-2013-revised.zip
MD5 Checksum: 9f0b00e092731333a648cde7da773de0
SHA-1 Checksum: 8e598debac9be3fcc46af7f83bccf8f269d23a57

source-19-5-2013-revised.zip
MD5 Checksum: 085804e5304263c7f0c2ab28685eb908
SHA-1 Checksum: 92238b569534ab91315ed7b45cac46131a3eb712
sha1-19-5-2013-revised.zip
(15.38 KiB) Downloaded 157 times
source-19-5-2013-revised.zip
(2.96 KiB) Downloaded 169 times
Attachments
checksum.jpg
checksum.jpg (30.82 KiB) Viewed 1696 times
Last edited by mad-hatter on Sun May 19, 2013 6:18 pm, edited 5 times in total.

User avatar
DaveDriesen
Posts: 113
Joined: Sun Mar 31, 2013 8:28 pm
Location: Top of the food chain
Contact: Website

Re: QT4 - find sha1 & md5 check sums - program & source

Fri May 17, 2013 3:56 pm

Your code is fine!!

Thanks for this -- not only is it useful as a tool but it's also a good example of QT/C++

Dave Driesen
Linux dev and oldskool elite

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: Find sha1 & md5 check sums - QT4 - C++ - program & sourc

Sun May 19, 2013 1:13 pm

Hello DaveDriesen,

There is an error in the code that was posted.
The original post has been updated.

Regards

Return to “C/C++”