|
@@ -25,7 +25,7 @@ public class RsaUtils {
|
|
/**
|
|
/**
|
|
* RSA密钥长度必须是64的倍数,在512~65536之间。默认是1024
|
|
* RSA密钥长度必须是64的倍数,在512~65536之间。默认是1024
|
|
*/
|
|
*/
|
|
- public static final int KEY_SIZE = 512;
|
|
|
|
|
|
+ public static final int KEY_SIZE = 1024;
|
|
|
|
|
|
public static void main(String[] args) {
|
|
public static void main(String[] args) {
|
|
KeyPairInfo keyPair = getKeyPair();
|
|
KeyPairInfo keyPair = getKeyPair();
|