Commit f8334316 by lixian7

解密工具修改

parent 162089e7
...@@ -5,6 +5,7 @@ import com.hikcreate.edl.pub.web.mobile.infra.core.configbean.SignKeyConfigBean; ...@@ -5,6 +5,7 @@ import com.hikcreate.edl.pub.web.mobile.infra.core.configbean.SignKeyConfigBean;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -40,7 +41,7 @@ public class ToolController { ...@@ -40,7 +41,7 @@ public class ToolController {
* @param cipher 密文 * @param cipher 密文
* @return * @return
*/ */
@GetMapping( value = "decrypt" ) @PostMapping( value = "decrypt" )
public String decrypt( String cipher ) { public String decrypt( String cipher ) {
return EncryptStringAes.decryptAes(cipher, signKeyConfigBean.getKey()); return EncryptStringAes.decryptAes(cipher, signKeyConfigBean.getKey());
} }
......
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