我在我的应用程序中使用了这些代码:
SecureRandom secureRandom = SecureRandom.getInstance("SHA1PRNG");
secureRandom.setSeed("12345678".getBytes());
I found these give me different result on ibm jre than sun jre.I used it in a DES algorithm.
And I found in IBM doc:
"SHA1PRNG is a Pseudo Random Number Generator and is supplied for code compatibility. SHA1PRNG is not guaranteed to produce the same output as the SUN SHA1PRNG. "
I used the SecureRandom in a DES algorithm, so I need the same output on different jre. Is there any way to get same output as SUN SHA1PRNG on ibm jre?