init...
This commit is contained in:
17
src/test/java/AESTest.java
Normal file
17
src/test/java/AESTest.java
Normal file
@@ -0,0 +1,17 @@
|
||||
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());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user