import com.hongliang.videotask.utils.AES; import org.junit.Test; public class AESTest { @Test public void AES(){ String data="123456"; try{ String strEncrypt=AES.encrypt(data); System.out.println("加密后:"+strEncrypt); System.out.println("解密后:"+AES.decrypt(strEncrypt)); }catch (Exception e){ System.out.println(e.toString()); } } }