Ensure we get a 1024 bit RSA key (Fixes #1814)
This commit is contained in:
parent
7179dd4c0d
commit
b6b015fe1f
@ -37,7 +37,9 @@ public class EncryptionUtil
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
keys = KeyPairGenerator.getInstance( "RSA" ).generateKeyPair();
|
KeyPairGenerator generator = KeyPairGenerator.getInstance( "RSA" );
|
||||||
|
generator.initialize( 1024 );
|
||||||
|
keys = generator.generateKeyPair();
|
||||||
} catch ( NoSuchAlgorithmException ex )
|
} catch ( NoSuchAlgorithmException ex )
|
||||||
{
|
{
|
||||||
throw new ExceptionInInitializerError( ex );
|
throw new ExceptionInInitializerError( ex );
|
||||||
|
Loading…
Reference in New Issue
Block a user