diff --git a/proxy/src/main/java/net/md_5/bungee/EncryptionUtil.java b/proxy/src/main/java/net/md_5/bungee/EncryptionUtil.java index d464e9266..871e4ad07 100644 --- a/proxy/src/main/java/net/md_5/bungee/EncryptionUtil.java +++ b/proxy/src/main/java/net/md_5/bungee/EncryptionUtil.java @@ -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 );