|
@@ -25,13 +25,13 @@ public class RsaUtils {
|
|
|
/**
|
|
|
* 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) {
|
|
|
KeyPairInfo keyPair = getKeyPair();
|
|
|
String publicKey = keyPair.getPublicKey();
|
|
|
String privateKey = keyPair.getPrivateKey();
|
|
|
- String appId = "fusion";
|
|
|
+ String appId = "sp";
|
|
|
System.out.println(appId+":");
|
|
|
System.out.println("appId:"+ MD5.create().digestHex(appId));
|
|
|
System.out.println("公钥:"+publicKey);
|