开发者

Why Java SHA1 does not Initial Vector?

开发者 https://www.devze.com 2023-03-12 05:43 出处:网络
I am trying to use java in built method (MessageDigest) to implement SHA1. However, in examples I have not find any method parameters to declare Initial Vector. Can anybody help me about this ?开发者_

I am trying to use java in built method (MessageDigest) to implement SHA1. However, in examples I have not find any method parameters to declare Initial Vector. Can anybody help me about this ?开发者_运维技巧??? Thanks in advance......


I am in no way an expert in cryptography, but logically thinking, what woud IV be needed for in digest? The point of digest is to produce seemingly random result for each input message but, as with any other hash, it must be the same for the same input. IV on the other hand are used to modify encryption algorithm to have different results for the same input.

So, I don't think there would be any IV.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号