CN114244563A - Front-end and back-end cross-language communication method and system based on AES encryption - Google Patents

Front-end and back-end cross-language communication method and system based on AES encryption Download PDF

Info

Publication number
CN114244563A
CN114244563A CN202111352634.XA CN202111352634A CN114244563A CN 114244563 A CN114244563 A CN 114244563A CN 202111352634 A CN202111352634 A CN 202111352634A CN 114244563 A CN114244563 A CN 114244563A
Authority
CN
China
Prior art keywords
data
programming language
server
request
aes encryption
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111352634.XA
Other languages
Chinese (zh)
Inventor
廖建华
杨乔
李翔
谭志荣
尹露禾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai XJ Electric Co Ltd
Zhuhai Xujizhi Power System Automation Co Ltd
Original Assignee
Zhuhai XJ Electric Co Ltd
Zhuhai Xujizhi Power System Automation Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai XJ Electric Co Ltd, Zhuhai Xujizhi Power System Automation Co Ltd filed Critical Zhuhai XJ Electric Co Ltd
Priority to CN202111352634.XA priority Critical patent/CN114244563A/en
Publication of CN114244563A publication Critical patent/CN114244563A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0435Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a front-end and back-end cross-language communication method and a system based on AES encryption, comprising an application end responding to an input request of a user and organizing request data through a first programming language based on a request protocol; the application terminal carries out AES encryption on the request data through a first programming language to obtain first encrypted data; the application end sends the first encrypted data to the server end; the server receives the first encrypted data and carries out AES decryption through a second programming language to obtain first decrypted data; the server analyzes and verifies the first decrypted data through a second programming language based on a request protocol; and after the server passes the verification, accessing the database and acquiring the service data from the database. In the process of accessing the database, the data are encrypted and decrypted by the AES, the request data are verified, the data security is enhanced, a uniform request protocol is adopted, the request data are verified, and the standardization of a service flow is facilitated.

Description

Front-end and back-end cross-language communication method and system based on AES encryption
Technical Field
The invention relates to the technical field of power distribution automation, in particular to a front-end and back-end cross-language communication method and system based on AES encryption.
Background
At present, electronic equipment such as an on-site power distribution terminal is mainly accessed to a power distribution automation system through communication modes such as optical fibers and a wireless network, the electronic equipment can directly access a database of a background server, and safety specifications of a production area of the power distribution automation system are not met. Although data between the electronic equipment and the database is encrypted by the MD5 algorithm in the access process, the MD5 algorithm encryption does not meet the new security authentication as the security requirement of network information changes. In addition, the electronic device has the following problems: the application request interface protocols are inconsistent, which is not beneficial to management and problem investigation; the application authority authentication modes are inconsistent, and potential safety hazards exist; and the application service processing exception responses are inconsistent, so that the management is inconvenient.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a front-end and back-end cross-language communication method and system based on AES encryption, which can improve the data security and communication standardization of a distribution automation system.
On the first hand, the front-end and back-end cross-language communication method based on AES encryption is applied to an application end and a service end and comprises the following steps:
the application end responds to an input request of a user and organizes request data through a first programming language based on a request protocol;
the application end carries out AES encryption on the request data through the first programming language to obtain first encrypted data;
the application end sends the first encrypted data to the server end;
the server receives the first encrypted data and carries out AES decryption through a second programming language to obtain first decrypted data;
the server analyzes and verifies the first decrypted data through the second programming language based on the request protocol;
and after the server passes the verification, accessing a database and acquiring service data from the database.
The front-end and back-end cross-language communication method based on AES encryption at least has the following beneficial effects:
in the process of accessing the database, the data are encrypted and decrypted by the AES, the request data are verified, the data security is enhanced, a uniform request protocol is adopted, the request data are verified, and the standardization of a service flow is facilitated.
According to some embodiments of the present invention, the AES encryption based front-end and back-end cross-language communication method further comprises the steps of:
the server side organizes the business data into response data through the second programming language based on a response protocol;
the server side carries out AES encryption on the response data through the second programming language to obtain second encrypted data;
and the server returns the second encrypted data to the application terminal.
According to some embodiments of the present invention, the AES encryption based front-end and back-end cross-language communication method further comprises the steps of:
the application end receives the second encrypted data and carries out AES decryption through the first programming language to obtain second decrypted data;
the application terminal analyzes and displays the second decrypted data through the first programming language based on the response protocol to complete the response of the input request.
In a second aspect, a front-end and back-end cross-language communication method based on AES encryption according to an embodiment of the present invention is applied to an application end, and includes:
organizing request data through a first programming language based on a request protocol in response to a user's input request;
performing AES encryption on the request data through the first programming language to obtain first encrypted data;
and sending the first encrypted data to a server.
The front-end and back-end cross-language communication method based on AES encryption at least has the following beneficial effects:
in the process of accessing the database, the data are encrypted and decrypted by the AES, the request data are verified, the data security is enhanced, and the standardization of a service flow is facilitated by adopting a uniform request protocol.
According to some embodiments of the present invention, the AES encryption based front-end and back-end cross-language communication method further comprises the steps of:
receiving second encrypted data from a server and carrying out AES decryption through the first programming language to obtain second decrypted data;
and analyzing and displaying the second decrypted data through the first programming language based on a response protocol of the server so as to complete the response of the input request.
In a third aspect, a front-end and back-end cross-language communication method based on AES encryption according to an embodiment of the present invention is applied to a server, and includes:
receiving first encrypted data from an application end and carrying out AES decryption through a second programming language to obtain first decrypted data;
analyzing and verifying the first decrypted data through the second programming language based on the request protocol of the application terminal;
and after the verification is passed, accessing the database and acquiring the service data from the database.
The front-end and back-end cross-language communication method based on AES encryption at least has the following beneficial effects:
in the process of accessing the database, the data are encrypted and decrypted by the AES, the request data are verified, the data security is enhanced, a uniform request protocol is adopted, the request data are verified, and the standardization of a service flow is facilitated.
According to some embodiments of the present invention, the AES encryption based front-end and back-end cross-language communication method further comprises the steps of:
organizing the business data into response data through the second programming language based on a response protocol;
performing AES encryption on the response data through the second programming language to obtain second encrypted data;
and returning the second encrypted data to the application terminal.
In a fourth aspect, the AES-encryption-based front-end and back-end cross-language communication system according to the embodiment of the present invention includes at least one of an application end and a server end;
the application terminal is used for responding to an input request of a user and organizing request data through a first programming language based on a request protocol;
the application end is used for carrying out AES encryption on the request data through the first programming language to obtain first encrypted data;
the application end is used for sending the first encrypted data to the server end;
the server is used for receiving the first encrypted data and carrying out AES decryption through a second programming language to obtain first decrypted data;
the server is used for analyzing and verifying the first decrypted data through the second programming language based on the request protocol;
and the server is used for accessing the database and acquiring the service data from the database after the verification is passed.
In a fifth aspect, an electronic device according to an embodiment of the present invention includes a processor, a storage medium, and a bus, where the storage medium stores machine-readable instructions executable by the processor, and the processor and the storage medium are communicatively connected through the bus, and the processor executes the machine-readable instructions to execute the AES encryption-based front-end and back-end cross-language communication method.
In a sixth aspect, according to the computer-readable storage medium of the embodiment of the present invention, the computer-readable storage medium stores thereon a computer program, and the computer program is executed by a processor to execute the AES-encryption-based front-end and back-end cross-language communication method.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart illustrating one of steps of a front-end and back-end cross-language communication method based on AES encryption according to embodiment 1 of the present invention;
fig. 2 is a second flowchart illustrating the steps of the AES-encryption-based front-end and back-end cross-language communication method according to embodiment 1 of the present invention;
fig. 3 is a flowchart illustrating the steps of a front-end and back-end cross-language communication method based on AES encryption according to embodiment 2 of the present invention;
fig. 4 is a flowchart illustrating the steps of a front-end and back-end cross-language communication method based on AES encryption according to embodiment 3 of the present invention;
fig. 5 is a schematic block diagram of a front-end and back-end cross-language communication system based on AES encryption according to embodiment 4 of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, "a plurality" means one or more, "a plurality" means two or more, and greater than, less than, more than, etc. are understood as excluding the present number, and "greater than", "lower than", "inner", etc. are understood as including the present number. If the description of "first", "second", etc. is used for the purpose of distinguishing technical features, it is not intended to indicate or imply relative importance or to implicitly indicate the number of indicated technical features or to implicitly indicate the precedence of the indicated technical features.
In the description of the present invention, unless otherwise explicitly limited, terms such as "disposed," "configured," "connected," and the like are to be construed broadly, and those skilled in the art can reasonably determine the specific meaning of the terms in the present invention by combining the detailed contents of the technical solutions.
Example 1
Referring to fig. 1, the present embodiment discloses a front-end and back-end cross-language communication method based on AES (Advanced Encryption Standard) Encryption, which is applied to an application end and a server end, wherein the application end is also called front-end application and is set on an electronic device such as an on-site power distribution terminal, an electronic computer, a mobile phone or a tablet computer in the form of an application program, an APP, or the like; the server is also called a backend server and is arranged in a background server in the form of an application program, management software and the like. The application terminal is implemented in a first programming language, the server terminal is implemented in a second programming language, and it should be noted that, according to different application environments, a person skilled in the art may select the first programming language and the second programming language from different programming languages. In the following, a JavaScript programming language and a Java programming language are taken as examples, where the JavaScript programming language is used as the first programming language, and the Java programming language is used as the second programming language. Since the application end and the server end are implemented by using different programming languages, in order to implement cross-language communication between the application end and the server end, the embodiment defines a uniform communication interface protocol, where the communication interface protocol is described in a JSON (JavaScript Object Notation) format. The communication interface protocol solves the problem that the current application request interface protocol is inconsistent, and is convenient for the management of the protocol and the application. In this embodiment, the communication interface protocol includes a request protocol and a response protocol, where the request protocol is mainly applied to front-end application, and the response protocol is mainly applied to back-end service. Table 1 shows the parameter description of the request protocol in this embodiment, table 2 shows the parameter description of the response protocol, and it should be noted that the parameter values of the protocol are set by those skilled in the art according to actual needs, and therefore, the specific parameter values are omitted in this embodiment.
TABLE 1
Figure BDA0003353703530000061
TABLE 2
Figure BDA0003353703530000062
In practical application, the application end may be different application programs configured on an electronic computer, for example, a power scheduling management platform, the application program is provided with a corresponding "application name", the application program has one or more function modules, each function module is provided with a corresponding "module name", the function module has one or more function controls, each function control is implemented by a corresponding function, each function is provided with a corresponding "function name", before the application program or the function module is used, a user is required to log in or authenticate authority to obtain a "user login ID", so that the security of the power distribution automation system is enhanced, even if a problem occurs in an operation process, a source tracing can be performed by querying the user login ID, and the problem investigation of the power distribution automation system is facilitated. It should be noted that the application name, the module name, the function name, or the user login ID may be a string of numbers, english symbols, or a string of characters. When a user needs to acquire data from a database of the background server, the application terminal encapsulates specific parameters of request information of the user into data. The server side feeds back parameters such as success or failure, response returned system time, service data needing to be returned or service processing abnormal information according to an actual processing result. Therefore, a uniform protocol foundation can be provided for cross-language communication between the application terminal and the service terminal.
In the above discussion, the communication interface protocol is defined in the present embodiment, and the front-end and back-end cross-language communication method based on AES encryption in the present embodiment is discussed in detail below. The front-end and back-end cross-language communication method based on AES encryption of the embodiment comprises steps S101 to S106. Wherein the content of the first and second substances,
s101, the application terminal responds to an input request of a user and organizes request data through a first programming language based on a request protocol.
For example, the application end exists in the form of an application program, such as a power dispatching management platform, the application program has one or more functional modules, the functional modules have one or more functional controls, and a user acquires data from a database of the background server through the functional controls. After the user triggers the corresponding function control, the application end responds to the input request of the user, organizes request data through the JavaScript programming language based on the request protocol, for example, when the user uses the power scheduling management platform to view the power scheduling data, the request data includes an application name of the power scheduling management platform, a module name of a current function module, a function name corresponding to the current control, a user login ID, a specific instruction for viewing the power scheduling data, and the like.
S102, the application end conducts AES encryption on the request data through the first programming language to obtain first encrypted data.
In order to improve the security of data communication, the present embodiment performs AES encryption, where the AES encryption uses a symmetric encryption algorithm, and data required for encryption (decryption) includes data to be encrypted (decrypted), a key, and a vector offset, and compared with the MD5 algorithm with unidirectional encryption, the AES encryption has higher security and can meet new security authentication requirements.
S103, the application end sends the first encrypted data to the server end.
In this embodiment, the application sends the first encrypted data to the server through a Socket (Socket), Socket communication is one of data transmission modes between application layers in a TCP/IP protocol model, and data communication between the application and the server can be implemented.
S104, the server receives the first encrypted data and conducts AES decryption through a second programming language to obtain first decrypted data.
For example, the server is management software arranged on a background server, so that access to a database of the background server between application terminals can be prevented, the risk of database paralysis or runaway caused by virus or illegal operation and the like can be reduced, and the safety of the distribution automation system can be improved. The communication between the application end and the server end is encrypted and decrypted by the AES, so that the safety of the communication is further improved.
And S105, the server analyzes and verifies the first decrypted data through a second programming language based on the request protocol.
The server and the application end communicate based on the same communication interface protocol, so that management is facilitated, and due to the fact that the communication interface protocol makes an agreement on parameters, a basis is provided for achieving cross-language communication between the server and the application end. In addition, after the server analyzes the first decrypted data, verification is required, which is beneficial to enhancing the safety of the distribution automation system. And the verification of the server side on the first decrypted data comprises module name verification, function name verification and user login ID verification. The module name verification means that the server side verifies whether the function module with the current request is available according to the module name, and returns abnormal information under the condition that the function module with the current request is unavailable; the function name verification means that the server verifies whether the function of the current request is available according to the function name, and returns abnormal information under the condition that the function of the current request is unavailable; the user login ID verification means that the server side verifies whether the current requested authority is enough according to the user login ID, and returns abnormal information under the condition that the current requested authority is not enough. The server side verifies the first decrypted data, and the communication safety is improved. The server side returns corresponding abnormal information according to different abnormal conditions, can perform unified processing on abnormal responses, and is convenient to manage.
And S106, after the verification is passed, the server accesses the database and acquires the service data from the database.
In the process of accessing the database, the data are encrypted and decrypted by the AES, the request data are verified, the data security is enhanced, a uniform request protocol is adopted, the request data are verified, and the standardization of a service flow is facilitated.
The above is discussed for the communication process of the request message between the application terminal and the service terminal, and the following is discussed for the processing process of the response message at the service terminal. Referring to fig. 2, the AES-encryption-based front-end and back-end cross-language communication method further includes steps S107 to S109. Wherein the content of the first and second substances,
s107, the server organizes the service data into response data through a second programming language in response to the response protocol;
s108, the server side conducts AES encryption on the response data through the second programming language to obtain second encrypted data.
And S109, the server returns the second encrypted data to the application terminal.
And when the server successfully acquires the corresponding service data from the database according to the request data, the server organizes the service data into response data through a Java programming language on the basis of the response protocol, wherein the response data comprises a mark of response success, system time returned by the response and the corresponding service data. The same as the processing process of the request information, in order to improve the security of data transmission, the server performs AES encryption on the response data, and the encrypted second encrypted data is returned to the application end through the socket. It should be noted that, in the case that the server fails in the verification, the server returns corresponding exception information. When the abnormal information is returned, the server organizes the abnormal information into response data through a second programming language based on a response protocol, and the response data corresponding to the abnormal information is different from the response data corresponding to the business data in that the response data corresponding to the abnormal information comprises a response failure mark, response returned system time and corresponding business processing abnormal information. Then, the server side carries out AES encryption on the response data and returns the response data to the application side. In this way, unified management of exception responses can be achieved.
The processing of the response message at the application side is discussed next. Referring to fig. 2, the AES-based front-end and back-end cross-language communication method further includes steps S110 to S111. Wherein the content of the first and second substances,
s110, the application end receives the second encrypted data and conducts AES decryption through the first programming language to obtain second decrypted data;
and S111, the application terminal analyzes and displays the second decrypted data through the first programming language based on the response protocol so as to complete the response of the input request.
Under the condition that the service end successfully acquires the service data, the second decrypted data obtained by the application end through AES decryption comprises corresponding service data, but the service data needs to be analyzed through the application end based on a response protocol through a JavaScript programming language so as to obtain the service data suitable for the application end environment. The application terminal displays the service data according to a preset format, for example, in a table form or a graphic form.
And under the condition that the server fails to verify, the second decrypted data obtained by the application terminal through AES decryption comprises corresponding abnormal information. Similarly, the application terminal obtains abnormal information conforming to the environment of the application terminal after analysis, and displays the abnormal information, for example, an alarm is given in the form of a pop-up frame.
Example 2
In a distribution automation system, electronic equipment for performing data communication with a database of a background server, such as an on-site power distribution terminal, an electronic computer, a mobile phone or a tablet personal computer, is large in quantity, and access positions and access time are not fixed. Referring to fig. 3, the front-end and back-end cross-language communication method based on AES encryption of the present embodiment includes:
s201, responding to an input request of a user, and organizing request data through a first programming language based on a request protocol;
s202, performing AES encryption on the request data through a first programming language to obtain first encrypted data;
s203, the first encrypted data is sent to the server.
In the process of accessing the database, the application terminal carries out AES encryption on the data and sends the request information to the server terminal instead of directly accessing the database, which is beneficial to enhancing the data security, and the adoption of a uniform request protocol is beneficial to realizing the standardization of the service flow.
The method for front-end and back-end cross-language communication based on AES encryption further comprises the following steps:
s204, receiving second encrypted data from the server and carrying out AES decryption through the first programming language to obtain second decrypted data;
s205, the second decrypted data is analyzed and displayed through the first programming language based on the response protocol of the server, so that the response of the input request is completed.
It should be noted that, the content not related in this embodiment may refer to embodiment 1, and this embodiment is not described again.
Example 3
The embodiment of the invention discloses a front-end and back-end cross-language communication method based on AES encryption, which is applied to a server, wherein the server is configured in a background server by methods such as an application program, management software and the like, and the server can perform data interaction with a database of the background server. Referring to fig. 4, the front-end and back-end cross-language communication method based on AES encryption of the present embodiment includes:
s301, receiving first encrypted data from an application end and carrying out AES decryption through a second programming language to obtain first decrypted data;
s302, analyzing and verifying the first decrypted data through a second programming language based on a request protocol of an application end;
and S303, after the verification is passed, accessing the database and acquiring the service data from the database.
In the process of accessing the database, the data are encrypted and decrypted by the AES, the request data are verified, the data security is enhanced, a uniform request protocol is adopted, the request data are verified, and the standardization of a service flow is facilitated.
The front-end and back-end cross-language communication method based on AES encryption further comprises the following steps:
s304, organizing the service data into response data through a second programming language based on a response protocol;
s305, performing AES encryption on the response data through a second programming language to obtain second encrypted data;
s306, the second encrypted data is returned to the application end.
It should be noted that, the content not related in this embodiment may refer to embodiment 1, and this embodiment is not described again.
Example 4
Referring to fig. 5, based on the AES-encryption-based front-end and back-end cross-language communication method discussed in embodiment 1, the embodiment of the present invention discloses an AES-encryption-based front-end and back-end cross-language communication system, which includes an application end and a server end;
based on the AES encryption-based front-back end cross-language communication method discussed in the embodiment 2, the embodiment of the invention discloses an AES encryption-based front-back end cross-language communication system, which comprises an application end;
based on the method for front-end and back-end cross-language communication based on AES encryption discussed in embodiment 3, the embodiment of the invention discloses a front-end and back-end cross-language communication system based on AES encryption, which comprises a server.
The application terminal is used for responding to an input request of a user and organizing request data through a first programming language based on a request protocol;
the application end is used for carrying out AES encryption on the request data through a first programming language to obtain first encrypted data;
the application end is used for sending the first encrypted data to the server end;
the server is used for receiving the first encrypted data and carrying out AES decryption through a second programming language to obtain first decrypted data;
the server is used for analyzing and verifying the first decrypted data through a second programming language based on a request protocol;
and the server is used for accessing the database and acquiring the service data from the database after the verification is passed.
It should be noted that, the content not related in this embodiment may refer to embodiment 1, and this embodiment is not described again.
Example 5
The embodiment of the invention discloses electronic equipment, which comprises a processor, a storage medium and a bus, wherein the storage medium stores machine readable instructions executable by the processor, the processor is in communication connection with the storage medium through the bus, and the processor executes the machine readable instructions so as to execute the front-end and back-end cross-language communication method based on AES encryption. The front-end and back-end cross-language communication method based on AES encryption may refer to embodiment 1, embodiment 2, and embodiment 3, which are not described again in this embodiment.
Example 6
The embodiment of the invention discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is operated by a processor, the front-end and back-end cross-language communication method based on AES encryption is executed. The front-end and back-end cross-language communication method based on AES encryption may refer to embodiment 1, embodiment 2, and embodiment 3, which are not described again in this embodiment.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.

Claims (10)

1. A front-end and back-end cross-language communication method based on AES encryption is applied to an application end and a server end, and is characterized by comprising the following steps:
the application end responds to an input request of a user and organizes request data through a first programming language based on a request protocol;
the application end carries out AES encryption on the request data through the first programming language to obtain first encrypted data;
the application end sends the first encrypted data to the server end;
the server receives the first encrypted data and carries out AES decryption through a second programming language to obtain first decrypted data;
the server analyzes and verifies the first decrypted data through the second programming language based on the request protocol;
and after the server passes the verification, accessing a database and acquiring service data from the database.
2. The AES encryption based front-end and back-end cross-language communication method of claim 1, further comprising the step of:
the server side organizes the business data into response data through the second programming language based on a response protocol;
the server side carries out AES encryption on the response data through the second programming language to obtain second encrypted data;
and the server returns the second encrypted data to the application terminal.
3. The AES encryption based front-end and back-end cross-language communication method of claim 2, further comprising the step of:
the application end receives the second encrypted data and carries out AES decryption through the first programming language to obtain second decrypted data;
the application terminal analyzes and displays the second decrypted data through the first programming language based on the response protocol to complete the response of the input request.
4. A front-end and back-end cross-language communication method based on AES encryption is applied to an application end and is characterized by comprising the following steps:
organizing request data through a first programming language based on a request protocol in response to a user's input request;
performing AES encryption on the request data through the first programming language to obtain first encrypted data;
and sending the first encrypted data to a server.
5. The AES encryption based front-end and back-end cross-language communication method of claim 4, further comprising the step of:
receiving second encrypted data from a server and carrying out AES decryption through the first programming language to obtain second decrypted data;
and analyzing and displaying the second decrypted data through the first programming language based on a response protocol of the server so as to complete the response of the input request.
6. A front-end and back-end cross-language communication method based on AES encryption is applied to a server and is characterized by comprising the following steps:
receiving first encrypted data from an application end and carrying out AES decryption through a second programming language to obtain first decrypted data;
analyzing and verifying the first decrypted data through the second programming language based on the request protocol of the application terminal;
and after the verification is passed, accessing the database and acquiring the service data from the database.
7. The AES encryption based front-end and back-end cross-language communication method of claim 6, further comprising the step of:
organizing the business data into response data through the second programming language based on a response protocol;
performing AES encryption on the response data through the second programming language to obtain second encrypted data;
and returning the second encrypted data to the application terminal.
8. A front-end and back-end cross-language communication system based on AES encryption is characterized by comprising at least one of an application end and a service end;
the application terminal is used for responding to an input request of a user and organizing request data through a first programming language based on a request protocol;
the application end is used for carrying out AES encryption on the request data through the first programming language to obtain first encrypted data;
the application end is used for sending the first encrypted data to the server end;
the server is used for receiving the first encrypted data and carrying out AES decryption through a second programming language to obtain first decrypted data;
the server is used for analyzing and verifying the first decrypted data through the second programming language based on the request protocol;
and after the server passes the verification, accessing a database and acquiring service data from the database.
9. An electronic device, comprising a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, the processor and the storage medium are communicatively connected through the bus, and the processor executes the machine-readable instructions to perform the AES encryption-based front-end and back-end cross-language communication method according to any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, executes the AES encryption based front-end and back-end cross-language communication method according to any one of claims 1 to 7.
CN202111352634.XA 2021-11-15 2021-11-15 Front-end and back-end cross-language communication method and system based on AES encryption Pending CN114244563A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111352634.XA CN114244563A (en) 2021-11-15 2021-11-15 Front-end and back-end cross-language communication method and system based on AES encryption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111352634.XA CN114244563A (en) 2021-11-15 2021-11-15 Front-end and back-end cross-language communication method and system based on AES encryption

Publications (1)

Publication Number Publication Date
CN114244563A true CN114244563A (en) 2022-03-25

Family

ID=80749465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111352634.XA Pending CN114244563A (en) 2021-11-15 2021-11-15 Front-end and back-end cross-language communication method and system based on AES encryption

Country Status (1)

Country Link
CN (1) CN114244563A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277192A (en) * 2008-04-25 2008-10-01 华为技术有限公司 Method and system for checking client terminal
US20100287532A1 (en) * 2009-05-07 2010-11-11 Verisign, Inc. Method and system for integrating multiple scripts
CN102479130A (en) * 2010-11-25 2012-05-30 上海宇芯科技有限公司 Method for checking cross-platform and cross-language single-chip system
CN102724207A (en) * 2012-06-28 2012-10-10 上海西本网络科技有限公司 Method and device for transmitting/processing service request, client end and service end
CN103684760A (en) * 2012-09-24 2014-03-26 腾讯科技(深圳)有限公司 Method, device and system for encryption and decryption of communication
CN105721154A (en) * 2014-12-05 2016-06-29 航天信息股份有限公司 Encryption protection method based on Android platform communication interface
CN110971581A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Encrypted data processing method and device
CN111698225A (en) * 2020-05-28 2020-09-22 国家电网有限公司 Application service authentication encryption method suitable for power dispatching control system
CN112699399A (en) * 2021-03-22 2021-04-23 阿里云计算有限公司 Encryption database system, method and device for realizing encryption database system
CN112910980A (en) * 2021-01-27 2021-06-04 中国银联股份有限公司 Database access system and method
CN112968899A (en) * 2021-02-26 2021-06-15 上海掌门科技有限公司 Method and equipment for encrypted communication

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277192A (en) * 2008-04-25 2008-10-01 华为技术有限公司 Method and system for checking client terminal
US20100287532A1 (en) * 2009-05-07 2010-11-11 Verisign, Inc. Method and system for integrating multiple scripts
CN102479130A (en) * 2010-11-25 2012-05-30 上海宇芯科技有限公司 Method for checking cross-platform and cross-language single-chip system
CN102724207A (en) * 2012-06-28 2012-10-10 上海西本网络科技有限公司 Method and device for transmitting/processing service request, client end and service end
CN103684760A (en) * 2012-09-24 2014-03-26 腾讯科技(深圳)有限公司 Method, device and system for encryption and decryption of communication
CN105721154A (en) * 2014-12-05 2016-06-29 航天信息股份有限公司 Encryption protection method based on Android platform communication interface
CN110971581A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Encrypted data processing method and device
CN111698225A (en) * 2020-05-28 2020-09-22 国家电网有限公司 Application service authentication encryption method suitable for power dispatching control system
CN112910980A (en) * 2021-01-27 2021-06-04 中国银联股份有限公司 Database access system and method
CN112968899A (en) * 2021-02-26 2021-06-15 上海掌门科技有限公司 Method and equipment for encrypted communication
CN112699399A (en) * 2021-03-22 2021-04-23 阿里云计算有限公司 Encryption database system, method and device for realizing encryption database system

Similar Documents

Publication Publication Date Title
CN103095457B (en) A kind of login of application program, verification method
US8770475B2 (en) System and method for setting connection between information processing devices, communication apparatus, setting information identifier outputting apparatus, and computer program
CN108347361B (en) Application program testing method and device, computer equipment and storage medium
CN111740942B (en) Login/registration method, device, system, electronic equipment and storage medium
CN113079164B (en) Remote control method and device for bastion machine resources, storage medium and terminal equipment
CN104737177A (en) Method of providing a secured service
CN112583815A (en) Operation instruction management method and device
CN111460410A (en) Server login method, device and system and computer readable storage medium
CN112783787A (en) Interface test method, device and system and electronic equipment
CN113225351A (en) Request processing method and device, storage medium and electronic equipment
CN110188159A (en) Collage-credit data cut-in method, device, equipment and computer readable storage medium
CN105812424A (en) Method and device used for checking electronic invoices
CN111614686A (en) Key management method, controller and system
CN109769010B (en) Method, device, equipment and storage medium for accessing CloudStack server based on SDK
CN113872940B (en) Access control method, device and equipment based on NC-Link
CN114362931A (en) Internet of things equipment registration and security authentication connection and instruction interaction method
CN113194015A (en) Internet of things intelligent household equipment safety control method and system
US20090150979A1 (en) Network system, network method, and terminal and program therefor
CN109640277B (en) Short message processing method and device applied to USIM card
CN114244563A (en) Front-end and back-end cross-language communication method and system based on AES encryption
CN110650014A (en) Signature authentication method, system, equipment and storage medium based on hessian protocol
CN115756255A (en) Method, device and equipment for processing equipment parameters of parking lot equipment and storage medium
CN114070610A (en) API gateway authentication method, gateway equipment and readable storage medium
CN105519069A (en) Data processing system, center apparatus and program
CN113626789A (en) User operation request processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination