Commit 162089e7 by lixian7

添加解密工具

parent f4f43501
......@@ -10,8 +10,9 @@ import org.springframework.web.bind.annotation.RestController;
/**
* 工具
* @menu 工具类
*
* @author lixian
* @menu 工具类
* @description
* @date 2020/6/18 17:57
**/
......@@ -24,6 +25,7 @@ public class ToolController {
/**
* 加密
*
* @param plain 明文
* @return
*/
......@@ -33,7 +35,19 @@ public class ToolController {
}
/**
* 解密
*
* @param cipher 密文
* @return
*/
@GetMapping( value = "decrypt" )
public String decrypt( String cipher ) {
return EncryptStringAes.decryptAes(cipher, signKeyConfigBean.getKey());
}
/**
* 获取时间戳
*
* @return
*/
@GetMapping( value = "timestamp" )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment