mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-28 19:47:49 +01:00
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
|
||||
{
|
||||
keys = KeyPairGenerator.getInstance( "RSA" ).generateKeyPair();
|
||||
KeyPairGenerator generator = KeyPairGenerator.getInstance( "RSA" );
|
||||
generator.initialize( 1024 );
|
||||
keys = generator.generateKeyPair();
|
||||
} catch ( NoSuchAlgorithmException ex )
|
||||
{
|
||||
throw new ExceptionInInitializerError( ex );
|
||||
|
Loading…
Reference in New Issue
Block a user