Ensure we get a 1024 bit RSA key (Fixes #1814)

This commit is contained in:
Thinkofname 2016-03-31 16:12:07 +01:00
parent 7179dd4c0d
commit b6b015fe1f

View File

@ -37,7 +37,9 @@ public class EncryptionUtil
{
try
{
keys = KeyPairGenerator.getInstance( "RSA" ).generateKeyPair();
KeyPairGenerator generator = KeyPairGenerator.getInstance( "RSA" );
generator.initialize( 1024 );
keys = generator.generateKeyPair();
} catch ( NoSuchAlgorithmException ex )
{
throw new ExceptionInInitializerError( ex );