Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 1st, 2006, 4:05 AM   #1
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 431
Rep Power: 4 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
MD5 Hash Calculator

A tiny app I made that gets the MD5 hash code for an input file. I've tried it out on various files and it hasn't given me an erroneous one yet. If you use it and it computes an incorrect code please lemme know. Otherwise, enjoy the prog and I hope it's useful to somebody. It's just a simple exe with a GUI, nothing spectacular.
Attached Files
File Type: zip grimd5.zip (23.3 KB, 4 views)
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis
grimpirate is offline   Reply With Quote
Old Aug 1st, 2006, 8:23 AM   #2
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
JET issues. Program failed to launch.


Side Note:
Since there is a plethora of requests for "test my X" and they are normally in EXE format instead of code, I've allocated a spare box to blow up with the potential viruses.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Aug 1st, 2006, 8:43 AM   #3
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
Quote:
Originally Posted by Infinite Recursion
Side Note:
Since there is a plethora of requests for "test my X" and they are normally in EXE format instead of code, I've allocated a spare box to blow up with the potential viruses.
Sounds explosive.

I did that once. I did a full install of Microsoft Windows XP Professional SP1 with only the updates up until SP1. Then i installed only my modem drivers, everything else was on the default settings. Almost instantly I was flooded by different things. I can't remember too wel but I can remember it started with error messages in applications, then i couldn't open the command prompt. I kept getting popups and other stuff. Then my background changed . And it finished in a message saying "Your system is being shutdown, please save work. Authority: WinNT\\System" Then it counted 30 seconds and rebooted.

It was fun but it shows that you should always get Microsoft updates, use a firewalla and antivirus, and be wary of potential attacks.
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Old Aug 1st, 2006, 8:48 AM   #4
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 330
Rep Power: 3 kruptof is on a distinguished road
i have a similar box IR to test my apps and other peoples apps, i call my box return-1; back to the topic people should post their source code along with their EXE's
__________________
Quote:
When I was young it seemed that life was so wonderful,a miracle, oh it was beautiful, magical.
Now watch what you say or they'll be calling you a radical,a liberal, oh fanatical, criminal. Oh won't you sign up your name,we'd like to feel you're acceptable, respectable, oh presentable, a vegetable
kruptof is offline   Reply With Quote
Old Aug 1st, 2006, 9:10 AM   #5
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Guys, my primary reason for the "test box" is so if someone does blow it up, I can retaliate. Digital Politics, except my regime is ok in regards to using nuclear weapons in pre-emptive strikes.

The windows updates are a must if you're running windows. The mindset of such a malicous person feeds on the inexperience of end users, most of which do not know how to get updates.

[ontopic]
grimpirate: The error was in fact occuring, in regards to JET, if you could provide the source code... we could tell you where you may be going wrong.
[/ontopic]

btw: If you are worried about posting code and someone taking it... don't be. I'll help you out in that regard by posting my perl code that does the same thing.

#!/usr/bin/env perl

# This perl script generates MD5 Checksums
# Jason Powers
# 16 MAY 2006

use 5.8.6;
use strict;
use IO::File;
use Getopt::Long;
use Digest::MD5;

my $myFile = $ARGV[0]; 
my $md5 = Digest::MD5->new;
my $check = 1;

open(FILE, $myFile) or die "Couldn't open $myFile for md5 checksum generation.";
binmode(FILE);
my $sum = $md5->addfile(*FILE)->hexdigest; 
close FILE;

print "\n---------------------------------------------\n";
print "MD5 Checksum of $myFile:\n";
print "$sum\n";
print "---------------------------------------------\n\n";

[jpowers@grendel]$ ./md5.pl cipher.pl

---------------------------------------------
MD5 Checksum of cipher.pl:
311b71c529c68e550f70ad47879e6397
---------------------------------------------
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Aug 1st, 2006, 9:17 AM   #6
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 330
Rep Power: 3 kruptof is on a distinguished road
who in the right mind use the machine that they connect to net to do their day to day serving as test box?......my test box is not even on my network.
__________________
Quote:
When I was young it seemed that life was so wonderful,a miracle, oh it was beautiful, magical.
Now watch what you say or they'll be calling you a radical,a liberal, oh fanatical, criminal. Oh won't you sign up your name,we'd like to feel you're acceptable, respectable, oh presentable, a vegetable
kruptof is offline   Reply With Quote
Old Aug 1st, 2006, 9:24 AM   #7
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Exactly kruptof. It would be foolish to connect such a test box to a productive network. I move test applications to the test box via a jump drive. The same box will act as both server and client in code that requires such. My comments regarding updates was in response to coldDeath's updateless box.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Aug 1st, 2006, 12:46 PM   #8
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 431
Rep Power: 4 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
Well here's the JAR file I compiled from which the EXE was made if that helps you to launch it. I was hoping I could make an EXE that would be readily available so that non Java users could use the prog, but I guess there are some difficulties.
Attached Files
File Type: zip md5.zip (2.7 KB, 3 views)
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis
grimpirate is offline   Reply With Quote
Old Aug 1st, 2006, 1:34 PM   #9
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
The jar file works well grimpirate... good work.

Here's a screenshot of the error I get when running the exe.
Attached Images
File Type: png gp.PNG (13.1 KB, 83 views)
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Aug 1st, 2006, 5:06 PM   #10
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 431
Rep Power: 4 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
ok well THIS executable SHOULD work, but I use it loosely, the JET doesn't do what I thought it did, sooooooo I've lost interest in pursuing it any further. Hopefully, this exe will work.
Attached Files
File Type: zip grimd5.zip (81.3 KB, 3 views)
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis
grimpirate is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Designing a Hash Function Twilight C++ 5 Apr 11th, 2006 11:20 AM
Python area calculator Volkan Python 20 Feb 4th, 2006 9:11 AM
Javascript calculator narroweyes JavaScript and Client-Side Browser Scripting 7 Jul 30th, 2005 12:46 PM
Hash function uman C++ 2 Jan 14th, 2005 9:08 PM
Hash tables maybesomeday C++ 3 Jan 14th, 2005 6:51 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:40 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC