raise RSA key size 1024 -> 2048
This commit is contained in:
parent
5b6bb3f10d
commit
5066ddf9af
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ public class EncryptUtil {
|
|||
public static KeyPair generateKeyPair() {
|
||||
try {
|
||||
KeyPairGenerator pairgen = KeyPairGenerator.getInstance("RSA");
|
||||
pairgen.initialize(1024);
|
||||
pairgen.initialize(2048);
|
||||
return pairgen.generateKeyPair();
|
||||
}
|
||||
catch(NoSuchAlgorithmException e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue