1
0
mirror of https://github.com/SpigotMC/BungeeCord.git synced 2025-02-14 02:41:37 +01:00

Ensure we get a 1024 bit RSA key (Fixes )

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 );