获取公私钥
Map map = SM2Util.getKeyPairStr();
JSONObject json = new JSONObject();
String privateKey = map.get("privateKey");
String publicKey= map.get("publicKey");
生成KEY和ID
String str = UUID.randomUUID().toString();
String appId = str.trim().replaceAll("-","").toUpperCase();
String appSecret = str.trim().replaceAll("-","").toUpperCase();
1