Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to seed md5 in java before hash

 
Johnny SmithyJr
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to seed md5 in java before hash? Do you just call reset() then update with the seed byte[] on the MessageDigest?
 
Paul Clapham
Sheriff
Pie
Posts: 20950
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 296
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we know what task are you trying to accomplish with java.security.MessageDigest?
 
Johnny SmithyJr
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20950
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic