This commit is contained in:
2024-04-08 15:44:24 +08:00
commit 341860b084
35 changed files with 941 additions and 0 deletions

View 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());
}
}
}