http encryption : 암호화 된 바디 데이터 복호화 하여 처리
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.example.httpencryption.utils;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
class AESUtilTest {
|
||||
|
||||
AESUtil util = new AESUtil();
|
||||
|
||||
@Test
|
||||
void encryptTest() {
|
||||
String hello = util.encrypt("hello");
|
||||
|
||||
System.out.println("hello = " + hello);
|
||||
|
||||
String decrypt = util.decrypt(hello);
|
||||
|
||||
assertEquals("hello", decrypt);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user