|
@@ -21,6 +21,8 @@
|
|
//
|
|
//
|
|
// --------------------------------------------**********--------------------------------------------
|
|
// --------------------------------------------**********--------------------------------------------
|
|
// */
|
|
// */
|
|
|
|
+//import lombok.extern.slf4j.Slf4j;
|
|
|
|
+//
|
|
//import java.math.BigInteger;
|
|
//import java.math.BigInteger;
|
|
//import java.security.Key;
|
|
//import java.security.Key;
|
|
//import java.security.KeyFactory;
|
|
//import java.security.KeyFactory;
|
|
@@ -38,12 +40,9 @@
|
|
//
|
|
//
|
|
//import javax.crypto.Cipher;
|
|
//import javax.crypto.Cipher;
|
|
//
|
|
//
|
|
-//
|
|
|
|
-//import com.github.structlog4j.ILogger;
|
|
|
|
-//import com.github.structlog4j.SLoggerFactory;
|
|
|
|
-//
|
|
|
|
|
|
+//@Slf4j
|
|
//public class RSA {
|
|
//public class RSA {
|
|
-// private static final ILogger log = SLoggerFactory.getLogger(RSA.class);
|
|
|
|
|
|
+//
|
|
// /** 指定key的大小 */
|
|
// /** 指定key的大小 */
|
|
// private static int KEYSIZE = 2048;
|
|
// private static int KEYSIZE = 2048;
|
|
// /**
|
|
// /**
|
|
@@ -92,7 +91,7 @@
|
|
// cipher.init(Cipher.ENCRYPT_MODE, key);
|
|
// cipher.init(Cipher.ENCRYPT_MODE, key);
|
|
// byte[] b = source.getBytes();
|
|
// byte[] b = source.getBytes();
|
|
// /** 执行加密操作 */
|
|
// /** 执行加密操作 */
|
|
-// byte[] b1 = cipher.doFinal(b);
|
|
|
|
|
|
+// byte[] b1 = cipher.doFi nal(b);
|
|
// return new String(Base64Sign.encodeBase64(b1),
|
|
// return new String(Base64Sign.encodeBase64(b1),
|
|
// ConfigureEncryptAndDecrypt.CHAR_ENCODING);
|
|
// ConfigureEncryptAndDecrypt.CHAR_ENCODING);
|
|
// }
|
|
// }
|