Posted By:
Dan_Kozin
Posted On:
Thursday, August 22, 2002 01:46 AM
Hello,
When I run this code, the same pair of Public/Private keys is generated always. If I put it in a loop, the same pair is generated every time the loop executes. Its probably something simple that I am missing (never had to use the JCE/JCA before), can anyone help with this one.
KeyPairGenerator gen = KeyPairGenerator.getInstance("RSA");
KeyPair pair = gen.generateKeyPair();
Thank you,
Dan