Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method and system for encrypting and decrypting API service data at transport layer

An API service and data technology, applied in transmission systems, electrical components, etc., can solve problems such as low efficiency and heavy workload, and achieve the effect of improving efficiency and reducing implementation workload

Active Publication Date: 2020-07-10
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The existing encryption processing method usually encrypts and decrypts the request and response for each API service separately, which has a large workload and low efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for encrypting and decrypting API service data at transport layer
  • Method and system for encrypting and decrypting API service data at transport layer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The present invention will be further elaborated below in conjunction with the accompanying drawings.

[0030] Such as figure 1 The shown method for encrypting and decrypting API service data at the transport layer includes the following steps:

[0031] S101, constructing an API service request filter;

[0032] S102, constructing an API service response filter;

[0033] S103, based on the encryption and decryption algorithm and rules agreed with the API server, the API client encapsulates the business requirement data, converts the plaintext request data into a plaintext string, and encrypts the plaintext string to generate ciphertext request data, and then sends The API server initiates a request;

[0034] S104, the API server receives the service request from the API client, triggers the API service request filter, requests the API service request filter, decrypts the ciphertext request data and resets the input stream entity data in the container;

[0035] S105, ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for carrying out encryption and decryption on API service data on a transmission layer. A service request filter and a service response filter are respectively arranged in a container operating an API service; in a case of not influencing request and response processes of the API service in the container, an API server side intercepts a corresponding request ciphertext message and a corresponding response cleartext message respectively before a request arrives and after a response is sent out; then encryption and decryption operations are carried out according to an appointed algorithm and rule; and completion of the request and response processes is ensured, so that the request and response message data transmission layer is in a ciphertext state, and at an API client and the API server side, cleartext data can be obtained to complete service logic processing. The invention further provides a system for carrying out encryption and decryption on the API service data on the transmission layer, which comprises the API client and the API server side. The API client and the API server side carry out network communication, and the API service request filter, the API service response filter and an API service logic unit are arranged in the API server side.

Description

technical field [0001] The invention relates to the technical fields of computer technology and network data security, in particular to a method and a system for encrypting and decrypting API service data at a transport layer. Background technique [0002] At present, the client and server of Internet applications usually communicate interactively through HTTP API. In order to prevent the plaintext data of the user or server from being hijacked and tampered with during the interactive communication, the client and server will agree on a data encryption method , transmitted as encrypted ciphertext data. Usually, the client encrypts the requested plaintext data and reports it to the server in the form of ciphertext data. The server first decrypts the ciphertext message to obtain the plaintext message, and generates a plaintext response after completing the business logic processing of the server. Message, the plaintext message is encrypted according to the same encryption met...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/06
CPCH04L63/0227H04L63/0428H04L63/166
Inventor 康钟荣李伟
Owner SICHUAN CHANGHONG ELECTRIC CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More