init src
This commit is contained in:
90
src/test/java/com/fly/AesTest.java
Normal file
90
src/test/java/com/fly/AesTest.java
Normal file
File diff suppressed because one or more lines are too long
17
src/test/java/com/fly/boot/util/AesEncryptUtilTest.java
Normal file
17
src/test/java/com/fly/boot/util/AesEncryptUtilTest.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package com.fly.boot.util;
|
||||
|
||||
import com.fly.boot.common.util.encrypt.AesEncryptUtil;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
public class AesEncryptUtilTest {
|
||||
|
||||
@Test
|
||||
public void testEncrypt() throws Exception {
|
||||
String key = "aa1f872935ad7d715a54c5fecdbc411f";
|
||||
String value = "{ 'phone':\"13800138000\" ,'password':\"1\",'code':\"123123\"}";
|
||||
String v = AesEncryptUtil.aesEncrypt(value, key);
|
||||
System.out.println(v);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user