|
@@ -75,17 +75,4 @@ public class BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static void main(String[] args) {
|
|
|
- JSONObject jsonObject = new JSONObject();
|
|
|
- jsonObject.put("account","111");
|
|
|
- jsonObject.put("time",new Date().getTime());
|
|
|
- jsonObject.put("rtkSnCode","2113213123");
|
|
|
- System.out.println(jsonObject.toJSONString());
|
|
|
- String decipher = RsaUtils.encipher(jsonObject.toJSONString(), RtkUtils.publicKey);
|
|
|
- System.out.println(decipher);
|
|
|
-
|
|
|
- String d = RsaUtils.decipher("hX2Gdrhtx21w5AixvCQu3Iq8vQsVGQ5s5Krr1VRYdZw4bXRhxKKxuZHPCmAjroVi5HUvg9jNcAuGwv9kO1EJKwqP6+/zsR2ixRSV8AEv4fMfO+HkEprRiSeHn0WMfS7qtCnLiSnx1WLsb7tXzR4qSEDE7UWQweuyZCq4X1oSBnP7cpqSzWJgs2zbKZPwM5TbvbsTtkR9ddxyAVoUMl9slIooebUmtbgMSvlj/Eh04vIyJ9BigZasyIDGQhW/PREN/mRsLLkuA3jS/FXAjSL9RfB4mlWLowvEYcMmmrz3LGGBCeZmzIwagRGGtt0XdYx9vIsOSIW4t9MNlQkxug6Quw==", RtkUtils.privateKey);
|
|
|
- System.out.println(d);
|
|
|
-
|
|
|
- }
|
|
|
}
|