Commit 940fc27c authored by 赵啸非's avatar 赵啸非

添加国密4加解密接口

parent a2ed5c70
......@@ -12,13 +12,11 @@ import com.mortals.xhx.common.utils.RSAUtils;
import com.mortals.xhx.common.utils.ServicePlatformInvoker;
import lombok.extern.slf4j.Slf4j;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.springframework.http.*;
import org.springframework.lang.NonNull;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.client.RestTemplate;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
......@@ -37,11 +35,10 @@ import java.util.List;
* @author zxfei
* @date 2022-03-09
*/
@Service("messageService")
@Service("messageCryptService")
@Slf4j
public class MessageServiceImpl implements MessageService {
private RestTemplate restTemplate = new RestTemplate();
@Override
public MessageReq decryptMessage(MessageReq req) {
......
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