Browse Source

删除没有使用的方法

andy 1 year ago
parent
commit
d34a048ce3
1 changed files with 0 additions and 7 deletions
  1. 0 7
      mainFactory/src/main/java/org/bfkj/utils/DataEncryption.java

+ 0 - 7
mainFactory/src/main/java/org/bfkj/utils/DataEncryption.java

@@ -408,13 +408,6 @@ public class DataEncryption {
         return keyFactory.generatePrivate(keySpec);
     }
 
-    public static KeyPair initKey(int keySize, String algorithm) throws NoSuchAlgorithmException {
-        KeyPairGenerator keyPairGen = KeyPairGenerator.getInstance(algorithm);
-        keyPairGen.initialize(keySize);
-        return keyPairGen.generateKeyPair();
-
-    }
-
 
     /**
      * RSA签名