add TestAES
This commit is contained in:
18
src/test/java/test/TestAES.java
Normal file
18
src/test/java/test/TestAES.java
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
|
import com.imyeyu.utils.Encoder;
|
||||||
|
import com.imyeyu.utils.Encryptor;
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author 夜雨
|
||||||
|
* @since 2025-12-28 11:44
|
||||||
|
*/
|
||||||
|
public class TestAES {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGenerateAESKey() {
|
||||||
|
byte[] bytes = Encryptor.aesKey(256);
|
||||||
|
System.out.println(Encoder.hex(bytes));
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user