|
@@ -1,8 +1,7 @@
|
|
|
package com.tofly.auth.util;
|
|
|
|
|
|
import org.apache.commons.codec.binary.Base64;
|
|
|
-import org.springframework.beans.factory.annotation.Value;
|
|
|
-import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
|
|
|
import javax.crypto.Cipher;
|
|
|
import javax.crypto.spec.IvParameterSpec;
|
|
@@ -13,7 +12,6 @@ import javax.crypto.spec.SecretKeySpec;
|
|
|
*/
|
|
|
|
|
|
public class AESUtil {
|
|
|
-
|
|
|
|
|
|
public static String encry(String content, String key) throws Exception {
|
|
|
String IV = key;
|