From b25d0b53ea30fa5038c45faf9202fc9f81a99fce Mon Sep 17 00:00:00 2001 From: Forevery <1262198645@qq.com> Date: Fri, 29 Sep 2017 20:33:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../forevery/EncodeUtils/Encode/RC4/RC4_Utils.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/encodeutils/src/main/java/org/forevery/EncodeUtils/Encode/RC4/RC4_Utils.java b/encodeutils/src/main/java/org/forevery/EncodeUtils/Encode/RC4/RC4_Utils.java index 75992b8..c0898d0 100644 --- a/encodeutils/src/main/java/org/forevery/EncodeUtils/Encode/RC4/RC4_Utils.java +++ b/encodeutils/src/main/java/org/forevery/EncodeUtils/Encode/RC4/RC4_Utils.java @@ -7,12 +7,12 @@ public class RC4_Utils { - /*private String Decry_RC4(byte[] data, String key) { + private String Decry(byte[] data, String key) { if (data == null || key == null) { return null; } return asString(RC4Base(data, key)); - }*/ + } /** * @param data 数据 @@ -20,7 +20,7 @@ public class RC4_Utils { * @param Type 解密编码 * @return String */ - public String Decry_RC4(String data, String key, String Type) { + public String Decry(String data, String key, String Type) { try { if (data == null || key == null) { return null; @@ -31,14 +31,14 @@ public String Decry_RC4(String data, String key, String Type) { } } - public String Decry_RC4(String data, String key) { + public String Decry(String data, String key) { if (data == null || key == null) { return null; } return new String(RC4Base(HexString2Bytes(data), key)); } - private byte[] Encry_RC4_(String data, String key) { + private byte[] Encry_Byte(String data, String key) { if (data == null || key == null) { return null; } @@ -46,11 +46,11 @@ private byte[] Encry_RC4_(String data, String key) { return RC4Base(b_data, key); } - public String Encry_RC4(String data, String key) { + public String Encry(String data, String key) { if (data == null || key == null) { return null; } - return toHexString(asString(Encry_RC4_(data, key))); + return toHexString(asString(Encry_Byte(data, key))); } private String asString(byte[] buf) {