first commit

This commit is contained in:
2025-06-18 19:14:40 +08:00
commit 343db0669c
368 changed files with 31132 additions and 0 deletions

View File

@ -0,0 +1,33 @@
package com.fuyuanshen.utils;
import org.junit.jupiter.api.Test;
import static com.fuyuanshen.utils.EncryptUtils.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class EncryptUtilsTest {
/**
* 对称加密
*/
@Test
public void testDesEncrypt() {
try {
assertEquals("7772841DC6099402", desEncrypt("123456"));
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* 对称解密
*/
@Test
public void testDesDecrypt() {
try {
assertEquals("123456", desDecrypt("7772841DC6099402"));
} catch (Exception e) {
e.printStackTrace();
}
}
}