package com;import com.shsnc.webssh.utils.SecretUtils;import org.junit.jupiter.api.Assertions;import org.junit.jupiter.api.Test;import lombok.extern.slf4j.Slf4j;/*** SecretUtilsTest** @author Mr.Lin* @version 1.0* @date 2021年2月24日 16:15*/@Slf4jclass SecretUtilsTest {private static final String a = "12345_67890-abc";/*** Encrypt.*/@Testvoid encrypt() {String res = SecretUtils.encrypt(a, SecretUtils.AES_KEY);log.info("加密结果:{}", res);Assertions.assertNotNull(res);res = SecretUtils.decrypt(res, SecretUtils.AES_KEY);log.info("解密结果:{}", res);Assertions.assertNotNull(res);}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。