Commit 6f5ed441 authored by yanzg's avatar yanzg

修改实体位置

parent 423c6429
...@@ -186,7 +186,8 @@ public final class RsaHelper { ...@@ -186,7 +186,8 @@ public final class RsaHelper {
* @throws Exception * @throws Exception
*/ */
private static String encodeBase64(byte[] source) throws Exception { private static String encodeBase64(byte[] source) throws Exception {
return new String(Base64.getEncoder().encode(source), SystemContants.UTF8); byte[] to = Base64.getEncoder().encode(source);
return new String(to, SystemContants.UTF8);
} }
/** /**
...@@ -197,6 +198,7 @@ public final class RsaHelper { ...@@ -197,6 +198,7 @@ public final class RsaHelper {
* @throws Exception * @throws Exception
*/ */
private static byte[] decodeBase64(String target) throws Exception { private static byte[] decodeBase64(String target) throws Exception {
return Base64.getDecoder().decode(target.getBytes(SystemContants.UTF8)); byte[] from = target.getBytes(SystemContants.UTF8);
return Base64.getDecoder().decode(from);
} }
} }
\ No newline at end of file
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