Skip to content
Advertisement

Tag: sha

MessageDigestMessage Digest returning different key after first digest

Here is how I initialize MessageDigest And here is how digest to get bytes for password which I later convert to string (no issue there) Now assume the password is “Password@1”. Here is the output first time (apologies for long text below) 115,83,48,-2,41,29,-99,71,-54,-53,-26,-67,-118,48,-75,77,13,100,42,70,-72,110,-85,23,-38,119,-110,-15,121,3,-25,114,-68,109,-108,94,-122,65,-62,10,-90,8,-125,114,-118,51,-51,89,127,55,37,83,-126,56,-31,-27,-49,-60,25,74,-80,-110,23,45 And here is output second time onwards. It remains same after this. -62,-50,45,-44,91,-86,16,90,85,53,101,-122,51,12,-82,52,-123,-101,-10,-28,-108,114,120,-96,84,-23,38,-75,78,67,36,-93,-88,-11,79,76,126,-34,-2,109,76,-31,-30,-86,-28,13,-91,-22,-65,-128,108,-47,15,19,95,60,-30,-123,-4,20,-64,21,-1,7 Can some one please

Advertisement