rwbutler
rwbutler

Reputation: 387

No Secure Random Number Generators Available in JDK

I am currently running JDK 6 on Windows 7 and have installed the Unlimited Strength Policy Files. I wrote a Java app some time ago which used to work but now fails, giving an error message indicating that the SHA1PRNG SecureRandom is not available. I have tried printing a list of cryptographic providers available on the platform and it would appear that there are no secure random number generators available - does anyone have any idea why this might be?

Many thanks in advance for your help!

Upvotes: 3

Views: 1456

Answers (2)

President James K. Polk
President James K. Polk

Reputation: 41997

According to this the SHA1PRNG is available out of the box with JDK6. You don't need need to install any additional policy files.

Upvotes: 3

hhafez
hhafez

Reputation: 39760

Most likely you are getting a NoSuchAllgorithmException thrown because your installation no longer proves Pseudo Random Number Generator "SHA1PRNG", I would recomend having a look here for info on how Algorithm are provided and used.

Upvotes: -1

Related Questions