Commit c5c9feb3 authored by yanzg's avatar yanzg

表结构修改

parent 4cd0373a
......@@ -39,6 +39,19 @@ public class TestRsa {
System.out.println(s);
}
@Test
public void testPublicDecode() {
String publicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCaBW3Zwh0oCIOGBHTxn+WrhUzGHb+ZLRXkpU4y6mw7w4tiznYRRPn2BCLs9QqKVIPIx9Z7MPdodqh3uN06aizk7FXx0GSk/F3fP9KvwS/QH+rmYpCR9lxAt3BkJq3sDHkPgkOdFy7lQwFvG7ECN2Tzxa9Usw47rlmBwLyaZxBrYQIDAQAB";
String accountInfo = "O28odVeYktCOGlm5dI8lnTcjIDsHdJgDctVomXcWXZM4g6m+mObcTzyerU064NCEIrADPLDF+unm2Ts6I/empwQJIwhlRMo4q6k8eVnuax3GZhkSjadrGXCtli/r0G5l4RcguJAOWcw6GFNeKHfv5hbt6B9swxCRuDpCGeOp50AdwP0b9CQN4+uH/mOCDD5W85t9gaDWL96H6fLR8QQO66TXCs/C7KNzRuJjhIebbi/TLaoTsptFHST0FIXTZLhEj5XhgMYNqujxoMbC53Kb4PhBGDYdoVXgtnRjiRcFByZKZ6DMcN3fll+4R6OxMNDUKTJ9TqM0AlTyx01SMea89Q==";
PublicKey key = RsaHelper.getPublicKey(publicKey);
String s = RsaHelper.decryptionByPublicKey(accountInfo, key);
System.out.println(s);
}
private void testRsaPublicEncode(RsaHelper.RsaInfo rsaInfo) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < 50; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment