///*Started by AICoder, pid:r4604bbedbx524714e700ba5e017836fd0f73c62*/
//package com.zte.studio.imate.core.middleware.util;
//import com.zte.itp.msa.util.encrypt.secure.AlgorithmConfig;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.commons.lang3.StringUtils;
//import org.junit.Before;
//import org.junit.Test;
//import org.mockito.MockitoAnnotations;
//
//import javax.crypto.Cipher;
//import javax.crypto.NoSuchPaddingException;
//
//import java.security.NoSuchAlgorithmException;
//
//import static org.junit.Assert.assertEquals;
//import static org.junit.Assert.assertNotNull;
//
//@Slf4j
//public class SecureEncryptorUtilsTest {
//
//    private static final String factor1 = "BORKUBIzrAuEjeDmlcyB";
//    private static final String factor2 = StringUtils.EMPTY;
//    private static final String salt = StringUtils.EMPTY;
////    private static final String key =     "1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik,";   //prod环境
//    private static final String key =         "zaq1xsw2cde3vfr4bgt5nhy6mju7,ki8";   //dev环境
////    private static final String key =           ".lo9,ki8mju7nhy6bgt5vfr4cde3xsw2";   //test环境
//    private static final String applicationName = "zte-studio-imate-workspace";
//
//    @Before
//    public void setUp() throws Exception {
//        MockitoAnnotations.initMocks(this);
//    }
//
//    @Test
//    public void testEncrypt1() {
//        String encrypted = SecureEncryptorUtils.encrypt(factor1, factor2, salt, key, applicationName, "comp");
//        log.info("加密结果：{}", encrypted);
//        assertNotNull(encrypted);
//    }
//
//    @Test
//    public void testEncrypt2() {
//        String encrypted = SecureEncryptorUtils.encrypt(factor1, factor2, salt, key, applicationName, "1xPNKlu!dev");
//        log.info("加密结果：{}", encrypted);
//        assertNotNull(encrypted);
//    }
//
////    @Test
////    public void testDecrypt() {
////        String encryptedKey = SecureEncryptorUtils.decrypt(factor1, factor2, salt, key, applicationName, "tG3MVWE3iSGNGfH/R1WPWZwudPlyaKNCrDloFVvLMXpgcpxU");
////        log.info("解密结果：{}", encryptedKey);
////        assertNotNull(encryptedKey);
////    }
//
//    @Test
//    public void testEncryptKey() {
//        String encrypted = SecureEncryptorUtils.encryptKey(factor1, factor2, salt, applicationName, key);
//        log.info("加密结果：{}", encrypted);
//        assertNotNull(encrypted);
//    }
//
//}