aspose file tools*
The moose likes Security and the fly likes how to seed md5 in java before hash Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "how to seed md5 in java before hash" Watch "how to seed md5 in java before hash" New topic
Author

how to seed md5 in java before hash

Johnny SmithyJr
Greenhorn

Joined: Mar 03, 2010
Posts: 7
how to seed md5 in java before hash? Do you just call reset() then update with the seed byte[] on the MessageDigest?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18992
    
    8

This doesn't sound at all like a beginner topic to me, so I have moved it to the Security forum where I think it's more appropriate.
surlac surlacovich
Ranch Hand

Joined: Mar 12, 2013
Posts: 296

Can we know what task are you trying to accomplish with java.security.MessageDigest?
Johnny SmithyJr
Greenhorn

Joined: Mar 03, 2010
Posts: 7
normally I just use MessageDigest to take md5 of a byte[] , someone mentioned seeding the md5 before taking the hash. I am not sure what they mean by that
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18992
    
    8

I'm not sure either, that's why I moved this to where security experts might have something to say about it.

When I google "seed md5 before hash", this thread is the first link I get. That suggests that it isn't a meaningful idea. Have you considered going back to the person who told you that and asking them for clarification?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to seed md5 in java before hash