You have to specify the bit length and the random number generator you want to use for the key (see the javadoc ): For generating a 2048 bit RSA key: rsaKeyPairGen. Init( new KeyGenerationParameters( new SecureRandom(), 2048 ) ).
You have to specify the bit length and the random number generator you want to use for the key (see the javadoc): For generating a 2048 bit RSA key: rsaKeyPairGen. Init( new KeyGenerationParameters( new SecureRandom(), 2048 ) ).
Almost there, your code is throwing: java.lang. ClassCastException: org.bouncycastle.crypto. KeyGenerationParameters cannot be cast to org.bouncycastle.crypto.params.
RSAKeyGenerationParameters – Tom Brito May 20 '10 at 19:36 and there is a lot of arguments to create a RSAKeyGenerationParameters.. I'll read about. – Tom Brito May 20 '10 at 19:38 it works with KeyPairGenerator. GetInstance("RSA", "BC"); Thanks anyway.
– Tom Brito May 20 '10 at 19:47.
The rsaKeyPairGen is not null, but the generateKeyPair() method is throwing NullPointerException. What may be wrong?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.