Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-17-2008, 04:30 AM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 880
Nicholas Jordan is on a distinguished road
toString() method of java.security.MessageDigest
I'm coding some stuff I will have to live, I just got this to compile:
Code:
String mad_dog = new java.lang.String(DIGEST_INPUT_STREAM.getMessageDigest().toString());
with the intent of something resembling Jesse Kornblum's md5-Deep. What I need to know is if this Message Digest to String looks like the Message Digest's we see for other work - i.e. colon separated string values looking to be something on the order of Character 0-9
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-17-2008, 11:09 AM
Senior Member
 
Join Date: Jun 2008
Posts: 551
masijade is on a distinguished road
I'm sorry, I know you don't want to hear this, and I don't want to intentionally upset you, nor do I want to get into a long discussion about it, but "Why don't you try it?"

Write a small test program that digests a few Strings and prints their digests, then do the same in some other language (or with some other tool) where you are familiar with it, and see if they match.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 09-17-2008, 06:43 PM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 880
Nicholas Jordan is on a distinguished road
I do want to hear this ( ! )
Far from upsetting me, this is master work and I recognize it. The issue here is well known in the crypto stuff I have been able to find: When there are bucks or value on the line, no detail is too small - no concievable issue undeserving of examination. This is real and will go live tomorrow.

I intend to do preliminary testing today, the point of posting is that I have no other language in which I can do cross-testing, it may be that assistance in finding the rfc's for the matter - that is actually my goal in posting. Search engines are great but areas of specialization are often not brought to professional grade by certified workers.

What I did there was get to a clean compile after having coded some 300-400 lines of rather convoluted effort that is not finished, I put that up as the last thing hoping to find some good links. I need something that will stand up to counter-claim by baccalaureate cs, therefore it is needful that I ask.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 09-17-2008, 08:03 PM
Senior Member
 
Join Date: Jun 2008
Posts: 551
masijade is on a distinguished road
Well, I'm sorry, I can't tell you too much about it. I do know that Sun's cryto classes at least live up to the RFC standards (and are, in fact, in use by the military, I can't quote sources on that, however). As far as whether or not it is better or worse than md5-deep, I can't say. Sorry, again.

As far as the RFC goes, in case you couldn't find it, here is one RFC 1321 (rfc1321) - The MD5 Message-Digest Algorithm.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 09-18-2008, 04:32 PM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 880
Nicholas Jordan is on a distinguished road
no progress
Quote:
Originally Posted by masijade View Post
Well, I'm sorry, I can't tell you too much about it. I do know that Sun's cryto classes at least live up to the RFC standards (and are, in fact, in use by the military, I can't quote sources on that, however).
Yes
Quote:
Originally Posted by masijade View Post
As far as whether or not it is better or worse than md5-deep, I can't say.
Uh,.... I spent an hour or two reading several RFC's, did not find official spec for Digest.toString() generally ~ MD-5, HMAC and whatever I could find. Worked on getting my code and ended up writing a stand-alone for a test stubb, md5-deep is just getting hashes for a directory to tracer whether there have been any changes. As for Military Grade Encryption, there is no such thing ~ if is was actual military we wouldn't be talking about it in open fora. I take Generic Midsize Corporation as my threat model for this.

I setteled on
Code:
String algorithm = new java.lang.String("HmacSHA256");
for no paticular reason, any actual hashing would do for what I need today, even student level work.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Security Warning Neil New To Java 3 09-01-2008 06:15 PM
Java security Zosden Java Applets 43 08-02-2008 04:10 PM
Creating MessageDigest - 2 JavaForums Java Blogs 0 05-07-2008 11:40 PM
Creating MessageDigest - 1 JavaForums Java Blogs 0 05-07-2008 11:40 PM
toString method apfroggy0408 New To Java 6 01-31-2008 06:08 AM


All times are GMT +3. The time now is 09:54 AM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org