Data encryption and decryption method, system, computer equipment and storage medium
By loading the same encryption and decryption modules on the client and server in mobile product development, the encryption and decryption compatibility problems caused by different technical languages are solved, cross-platform encryption and decryption consistency is achieved, and the cost and risk of joint debugging is reduced. .
Patent Information
- Application Number
- CN202411321086.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-09-23
AI Technical Summary
During the mobile product development process, the front-end, client and server use different technical languages, resulting in different parameter capabilities of the same set of encryption methods, resulting in compatibility problems and decryption failures often occur during encryption and decryption.
By loading the same encryption and decryption module on the client and server side, and calling the encryption and decryption module using browser controls and running environment services, we ensure that all ends use the same encryption and decryption algorithms and frameworks to achieve cross-platform encryption and decryption consistency.
It reduces compatibility issues and code complexity during the encryption and decryption process, ensures the smoothness and stability of the encryption and decryption communication, reduces the cost of joint debugging errors, and reduces the hidden risks brought by the language framework.
Smart Images

Figure CN118869352B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a data encryption and decryption method, system, computer equipment and storage medium. Background Art
[0002] The current mobile product development process often involves the development of multiple technical fields such as the front-end, client, and server. In the communication process, scenarios of data security transmission are often encountered. For example, in the process of transmitting the user's mobile phone number, the front-end, client, and back-end cannot communicate with each other in plain text during the communication process. The usual technical means is to encrypt first, and after the encrypted data is transmitted, the receiving end decrypts the data and then uses it.
[0003] Since the front-end, client, and back-end are usually developed in different technical languages, for the same encryption method, the parameter capabilities and default implementations provided by each technical language are different. For example, when encrypting with AES, multiple encryption modes are involved. This complex scenario sometimes leads to decryption failures when the three ends interact. Summary of the invention
[0004] In a first aspect, the present application provides a data encryption and decryption method, which is applied to a client, comprising:
[0005] When receiving the ciphertext, the encryption and decryption module is called through the browser control;
[0006] Decrypting the ciphertext by the encryption and decryption module;
[0007] When sending data that needs to be encrypted, the encryption and decryption module is called to encrypt the data to be encrypted, and the encrypted data is obtained and sent to the corresponding page front end or server; the encryption and decryption module is the same as the encryption and decryption module used by the page front end.
[0008] Furthermore, calling the encryption and decryption module through the browser control includes:
[0009] Through the webview browser control, load the encryption and decryption module under the encryption and decryption framework file path, and communicate with the webview browser control to call the decryption method in the encryption and decryption module to decrypt the ciphertext.
[0010] Furthermore, the encryption and decryption module is an encryption and decryption module under the JS encryption and decryption framework.
[0011] In a second aspect, the present application provides a data encryption and decryption method, which is applied to a server, comprising:
[0012] When receiving the ciphertext, the encryption and decryption module is called through the running environment service;
[0013] Decrypting the ciphertext by the encryption and decryption module;
[0014] When sending data that needs to be encrypted, the encryption module is used to encrypt the data to be encrypted, and the encrypted data is obtained and sent to the corresponding page front end or client; the encryption module is the same as the encryption module used by the page front end.
[0015] Furthermore, the calling of the encryption and decryption module through the operating environment service includes:
[0016] When the operating environment service of the server is a node service, the encryption and decryption module is called through the node service;
[0017] When the operating environment service of the server is not a node service, the encryption and decryption module is packaged into a node application, and the encryption and decryption module is called in the form of a node application.
[0018] Furthermore, the encryption and decryption module is an encryption and decryption module under the JS encryption and decryption framework.
[0019] In a third aspect, the present application provides a data encryption and decryption system, including: a page front end, a client end, and a server end;
[0020] The client and the server both load the same encryption and decryption module as the page front end;
[0021] The client is used to call the encryption and decryption module through the browser control when receiving the ciphertext from the page front end or the server; and decrypt the ciphertext through the encryption and decryption module;
[0022] The client is also used to call the encryption and decryption module when sending data that needs to be encrypted, encrypt the data to be encrypted, obtain the encrypted data and send it to the page front end or the server;
[0023] When the server receives the ciphertext from the client or the front end of the page, the encryption and decryption module is called through the operating environment service; the ciphertext is decrypted through the encryption and decryption module;
[0024] When the server is also used to send data that needs to be encrypted, it calls the encryption and decryption module through the operating environment service to encrypt the data to be encrypted, obtain the encrypted data and send it to the page front end or the client.
[0025] Furthermore, the encryption module includes an encryption algorithm and a corresponding decryption algorithm; the encryption algorithm is one of DES, AES, RSA, and SHA;
[0026] When performing an encryption operation, the encryption algorithm is called to encrypt the plaintext;
[0027] When performing a decryption operation, the decryption algorithm is called to decrypt the ciphertext.
[0028] In a fourth aspect, the present application further provides a computer device, comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program runs on the processor, the data encryption and decryption method is executed.
[0029] In a fifth aspect, the present application also provides a readable storage medium storing a computer program, which executes the data encryption and decryption method when running on a processor.
[0030] The present invention discloses a data encryption and decryption method. The method comprises: when receiving ciphertext, calling an encryption and decryption module through a browser control; decrypting the ciphertext through the encryption and decryption module; when sending data to be encrypted, calling the encryption and decryption module, encrypting the data to be encrypted, obtaining the encrypted data and sending it to the corresponding page front end or server end. The client can use the same encryption and decryption program as the front end to ensure smooth encryption and decryption communication, ensure that the cross-platform three-terminal system can use the encryption and decryption program of the same language and framework, and the encryption and decryption capabilities brought by the same language framework are consistent, which can reduce various joint debugging costs. Reduce the hidden risks brought by the language framework. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection of the present invention. In each of the drawings, similar components are numbered similarly.
[0032] Figure 1 A schematic diagram of the structure of a data encryption and decryption system according to an embodiment of the present application is shown;
[0033] Figure 2 A schematic diagram of a client data encryption and decryption method according to an embodiment of the present application is shown;
[0034] Figure 3 A schematic diagram of a server-side data encryption and decryption method according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0035] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0036] The components of the embodiments of the present invention generally described and shown in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0037] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present invention, are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.
[0038] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.
[0039] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present invention belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present invention.
[0040] The technical solution of the present application is applied to multi-terminal mixed development applications, which generally include the front end, client, and server. Because the production environments of the three ends are different and the operating systems used are different, the encryption and decryption algorithms of the three ends basically use different programming languages. For the same set of encryption methods, the parameter capabilities provided by each technical language and the default implementation are different. For example, when AES encryption is used, multiple encryption modes are involved. For example, the padding mode supported by AES encryption in the Java language, in the RSA encryption and decryption scenario, the Java language will support segmented decryption of large files, and full decryption when the amount of data is small. Developers sometimes cannot choose segmented decryption or full decryption, resulting in encoding problems. In this way, even if the three ends use the same encryption and decryption algorithm, it will still fail when actually decrypting. And this failure comes from the differences in decryption capabilities brought by each language.
[0041] This application unifies the encryption and decryption functions of these three ends and uses the same encryption and decryption technical language as a solution, so that when the three ends perform encrypted communication, there is no need for compatibility processing due to different encryption and decryption methods. This reduces the complexity of the code and makes encrypted communication more difficult to make mistakes.
[0042] Next, the technical solution of the present application is described with specific embodiments.
[0043] Example 1
[0044] like Figure 1 As shown, it is a structural diagram of a multi-terminal data encryption and decryption system.
[0045] The system includes a page front end 100, a server 200 and a client 300, wherein the server 200 also provides a page front end 100 that can interact with a user, and in the system, there is mutual encrypted communication between the page front end 100, the server 200 and the client 300. Both the client 300 and the server 200 load the same encryption and decryption module as the page front end 100.
[0046] The encryption module includes an encryption algorithm and a corresponding decryption algorithm; the encryption algorithm is one of DES, AES, RSA, and SHA; when an encryption operation is performed, the encryption algorithm is called to encrypt the plaintext; when a decryption operation is performed, the decryption algorithm is called to decrypt the ciphertext.
[0047] The page front end 100 refers to a web page running on a browser of a PC or mobile device and presented to the user. It can be an H5 page or other types of web page. Generally speaking, the page is provided with corresponding resource data by the server 200. The server 200 is a service program running on a server that processes background business functions and is managed by a developer or operator. It has a central processing function and is the core of the entire system. The client 300 refers to specially developed application software such as mobile phone APP or computer application. Users can quickly log in and use related business functions through the client software. It can be understood that the system is a cross-platform system. Users can interact with the server whether on the client or through the page front end to get the same service.
[0048] Among them, there are mutual encrypted communication scenarios between these three ends. For example, both the front-end and the client need to communicate with the server to perform some business information exchanges. The front-end and the client will also interact for some business and functional reasons. For example, the client needs to load the interface based on the page front-end, or the client user and the front-end user exchange information, etc., which will generate a certain degree of communication needs.
[0049] It is understandable that the operating environment and hardware facilities of the front-end, client and server are different, so even if the encryption and decryption algorithms are the same, these differences will lead to coding problems. Among them, the front-end of the page mainly uses JS (JavaScript) to implement various encryption and decryption operations.
[0050] In this embodiment, in order to unify the encryption and decryption methods used by the page front end, client and server, the same JS encryption and decryption module is also integrated into the client and server. Among them, the encryption and decryption method can be a symmetric encryption algorithm or an asymmetric encryption method, such as AES algorithm, DES algorithm, 3DES algorithm, etc. The page front end, client and server will have the same, complete set of encryption and decryption algorithms, so that there is no decryption barrier during encrypted communication.
[0051] Among them, for the page front end, when the page front end receives the ciphertext, the ciphertext is directly decrypted through the encryption and decryption module in the page; when sending data that needs to be encrypted, the encryption and decryption module in the page is directly used to encrypt the data to be encrypted, and then the encrypted data is sent to the client or server. This type of encryption and decryption program executed on the page is basically an encryption and decryption method written in a programming language such as JS scripts that is suitable for executing code logic on the front end. For the page front end, these methods can be directly called without hindrance.
[0052] The client operating environment is mainly various personal devices. In order to successfully call and run the encryption and decryption methods in the encryption and decryption module written in JS, the encryption and decryption module will be called through the browser control. At this time, this part of the code can be a program file written by JS, just like the front end of the page. You only need to determine the calling path of this part of the encryption and decryption module file to implement the calling operation. The above-mentioned browser control can be a browser control such as webview (web view control).
[0053] For the server, its operating environment is mainly the server environment, which is different from the operating environment of the front-end and the client. The server can be implemented through the environment service. Similarly, the code of the encryption and decryption module used by the server is the same as the code of the encryption and decryption module used by the page front-end. Through the corresponding environment service, the encryption and decryption method written in this type of JS is implemented in the server environment. Among them, the above-mentioned environment service can be such as node service.
[0054] The data encryption and decryption method of this embodiment is applied in the scenario of three-end communication between the client, the server and the front-end page, and the encryption and decryption modules written in the same language as the front-end are configured in the client and the server. By calling the encryption and decryption modules through the configuration in each operating environment, it can be ensured that the encrypted communication between the client, the server and the front-end will not have problems such as incompatibility due to differences in encryption and decryption methods, thereby ensuring the fluency and stability of encrypted communication between various platforms of this cross-platform system. At the same time, the cost of joint debugging is reduced, and the encryption and decryption capabilities brought by the same language framework are consistent, which can reduce the cost of various joint debugging. Reduce the hidden risks brought by the language framework. The same framework can encrypt and decrypt, which can ensure that the decrypted data can be decrypted normally, and it will not appear in different language frameworks. Even if the encryption and decryption algorithms are the same, it is necessary to perform compatibility adaptation operations on the encrypted data, saving the steps of encryption and decryption operations, thereby improving communication efficiency.
[0055] Example 2
[0056] For the front end, when receiving the ciphertext, the ciphertext is directly decrypted through the encryption and decryption module in the page; when sending data that needs to be encrypted, the data to be encrypted is directly encrypted through the encryption and decryption module in the page, and then the encrypted data is sent to the client or server.
[0057] This embodiment describes the process steps of adapting the front-end encryption and decryption method when performing encryption and decryption for the client and the server, respectively.
[0058] Among them, for the client 300, the data encryption and decryption method is as follows Figure 2 As shown, including:
[0059] Step S100, when the ciphertext is received, the encryption and decryption module is called through the browser control.
[0060] When the client in this embodiment receives the ciphertext, it needs to decrypt the ciphertext, and at this time it needs to call the encryption and decryption module through the browser control.
[0061] Among them, the program code corresponding to the encryption and decryption module will be saved in the encryption and decryption framework file path, which is the path where the client program saves the encryption and decryption module program file. The encryption and decryption module can be considered as a library file, which is imported into the encryption and decryption framework file path to facilitate client calls.
[0062] The encryption module includes an encryption algorithm and a corresponding decryption algorithm; the encryption algorithm is one of DES, AES, RSA, and SHA; when an encryption operation is performed, the encryption algorithm is called to encrypt the plaintext; when a decryption operation is performed, the decryption algorithm is called to decrypt the ciphertext.
[0063] It should be noted that in order to make the encryption and decryption method of the client the same as that of the front end, the same JS encryption and decryption program as the front end is used here. The development environment of the client program is generally programming languages such as C or JAVA, so when using a scripting language such as JS, a special calling method is required to perform the calling process. The version of the encryption and decryption module also needs to be the same as that of the front end of the page, for example, both can be encryption and decryption modules of CryptoJS 1.0 version.
[0064] Because the client is an application on the mobile terminal, the corresponding interface is generated through the browser. Therefore, in this embodiment, the method in the encryption module is called through webview.
[0065] Step S200: decrypt the ciphertext by the encryption and decryption module.
[0066] The encryption and decryption module includes encryption method and decryption method. When the call is successful, the decryption method can be used directly to decrypt the ciphertext and obtain the corresponding plaintext for processing.
[0067] Among them, the decryption method in the encryption module can load the encryption and decryption module through the webview control, and then the native system program of the client can call the encryption and decryption module loaded by the webview control through native communication, so as to realize the mobile terminal's call to the JS encryption and decryption module method.
[0068] In this way, the decryption environment of the client can be the same as the front-end, and the type and version of the encryption and decryption modules used for decryption are the same, which can ensure that the ciphertext and decryption method are completely consistent, and there will be no decryption failure due to different filling modes and other methods.
[0069] Step S300, when sending data that needs to be encrypted, call the encryption and decryption module, encrypt the data to be encrypted, obtain the encrypted data and send it to the corresponding page front end or server.
[0070] When sending data that needs to be encrypted, the data to be encrypted needs to be encrypted. At this time, similar to the calling method in step S100, the encryption and decryption module is called, and then the encryption method therein is used to encrypt the data to be encrypted.
[0071] Encryption is generally used to encrypt communications, so the encrypted data will be sent to the corresponding server or front end.
[0072] It should be noted that the encryption and decryption method called by the client through webview in this embodiment is the JS encryption and decryption method of the same version as the page front end. It is implemented in the client environment, running the JS code, and then realizing that the encryption and decryption methods of the client and the front end are exactly the same, thereby avoiding the incompatibility problems caused by differences in encryption and decryption algorithms.
[0073] like Figure 3 As shown, the data encryption and decryption method on the server side includes:
[0074] Step S400: When the ciphertext is received, the encryption and decryption module is called through the operating environment service.
[0075] The operating environment of the server is different from that of the client, so it cannot be performed through webview as in step S100, but the encryption and decryption module set on the server is called through the corresponding operating environment service.
[0076] Among them, when the operating environment service is a node service, the encryption and decryption module written in JS can be directly called. Therefore, the encryption and decryption module used by the server also needs to be the same version and model as the encryption and decryption module used by the front end, such as the encryption and decryption module of CryptoJS 1.0 version.
[0077] The node service is a running environment that allows JS to run on the server. Therefore, the server can use the node service to call the encryption module written by JS. As a result, the server and the encryption and decryption module, the front-end encryption and decryption module, and the client encryption and decryption module are exactly the same. The encryption and decryption modules programmed by JS use the same language and the same encryption and decryption algorithm version. Therefore, even if it is a cross-platform encryption and decryption operation, the generated and obtained ciphertext can be directly decrypted without compatibility processing.
[0078] In addition, if the server-side development environment is developed in other languages such as Java / python, and its operating environment service is not a node service, the js encryption and decryption module can be packaged into a node application. After the application is run, the encryption and decryption capabilities are exposed to the outside world, thereby realizing the provision and call of capabilities.
[0079] Step S500: decrypt the ciphertext by the encryption and decryption module.
[0080] After the call is successful, you can use the decryption method in the encryption and decryption module to perform the decryption operation.
[0081] It can be understood that even in a server environment, the script files edited by JS will form different functions according to different encryption and decryption methods, and calling these functions can perform corresponding decryption operations.
[0082] Step S600, when sending data that needs to be encrypted, the encryption and decryption module encrypts the data to be encrypted, obtains the encrypted data and sends it to the corresponding page front end or client.
[0083] Similar to the decryption operation, the corresponding encryption operation can be implemented by using the runtime environment service and calling the encryption and decryption modules.
[0084] Encryption is generally used for encrypted communication, so the encrypted information will be sent to the front end or client that needs to communicate.
[0085] This embodiment illustrates the structure of the data encryption and decryption system, as well as how the client and server implement the method steps that are consistent with the encryption and decryption modules of the front end. Among them, in order to adapt to the type of code language used by the front end, the client and server use a specific service or browser framework to adapt the code language used by the page front end in a non-web page environment, so that the codes for the encryption and decryption parts in the three ends can be completely consistent, ensuring the smoothness of encrypted communication between the three ends. At the same time, the cost of joint debugging is reduced. The encryption and decryption capabilities brought by the same language framework are consistent, which can reduce the costs of various joint debugging. Reduce the hidden risks brought by the language framework. The same framework can encrypt and decrypt, and can ensure that the decrypted data can be decrypted normally.
[0086] Example 3
[0087] The present application also provides a computer device, including a processor and a memory, wherein the memory stores a computer program, and when the computer program is run on the processor, the data encryption and decryption method is executed.
[0088] The computer device may be a computer, an intelligent terminal, a server or other computer device.
[0089] The present application also provides a readable storage medium storing a computer program, wherein the computer program executes the data encryption and decryption method when running on a processor.
[0090] The readable storage medium may be a storage medium capable of recording a computer program, such as a memory, a hard disk, a floppy disk or an optical disk.
[0091] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow chart, and the combination of boxes in the structure diagram and / or the flow chart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0092] In addition, the functional modules or units in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0093] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0094] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A data encryption and decryption method, characterized in that: Applied to the client, including: When receiving the ciphertext, the encryption and decryption module is called through the browser control; Decrypting the ciphertext by the encryption and decryption module; When sending data that needs to be encrypted, the encryption and decryption module is called to encrypt the data to be encrypted, and the encrypted data is obtained and sent to the corresponding page front end or server; the encryption and decryption module is the same as the encryption and decryption module used by the page front end; The calling of the encryption and decryption module through the browser control includes: Load the encryption and decryption module under the encryption and decryption framework file path through the webview browser control, and call the decryption method in the encryption and decryption module to decrypt the ciphertext by communicating with the webview browser control; The encryption and decryption module is an encryption and decryption module under the JS encryption and decryption framework.
2. A data encryption and decryption method, characterized in that: Applied to the server, including: When receiving the ciphertext, the encryption and decryption module is called through the running environment service; Decrypting the ciphertext by the encryption and decryption module; When sending data that needs to be encrypted, the encryption module encrypts the data to be encrypted, obtains the encrypted data and sends it to the corresponding page front end or client; the encryption module is the same as the encryption module used by the page front end; The calling of the encryption and decryption module through the operating environment service includes: When the operating environment service of the server is a node service, the encryption and decryption module is called through the node service; When the operating environment service of the server is not a node service, the encryption and decryption module is packaged into a node application, and the encryption and decryption module is called in the form of a node application; The encryption and decryption module is an encryption and decryption module under the JS encryption and decryption framework.
3. A data encryption and decryption system, characterized in that: Including: page front-end, client and server; The client and the server both load the same encryption and decryption module as the page front end; The client is used to call the encryption and decryption module through the browser control when receiving the ciphertext from the page front end or the server; and decrypt the ciphertext through the encryption and decryption module; The client is also used to call the encryption and decryption module when sending data that needs to be encrypted, encrypt the data to be encrypted, obtain the encrypted data and send it to the page front end or the server; When the server receives the ciphertext from the client or the front end of the page, the encryption and decryption module is called through the operating environment service; the ciphertext is decrypted through the encryption and decryption module; When the server is also used to send data that needs to be encrypted, call the encryption and decryption module through the operating environment service to encrypt the data to be encrypted, obtain the encrypted data and send it to the page front end or the client; The calling of the encryption and decryption module through the browser control includes: Load the encryption and decryption module under the encryption and decryption framework file path through the webview browser control, and call the decryption method in the encryption and decryption module to decrypt the ciphertext by communicating with the webview browser control; The calling of the encryption and decryption module through the operating environment service includes: When the operating environment service of the server is a node service, the encryption and decryption module is called through the node service; When the operating environment service of the server is not a node service, the encryption and decryption module is packaged into a node application, and the encryption and decryption module is called in the form of a node application; The encryption and decryption module is an encryption and decryption module under the JS encryption and decryption framework.
4. The data encryption and decryption system according to claim 3, characterized in that: The encryption and decryption module includes an encryption algorithm and a corresponding decryption algorithm; the encryption algorithm is one of DES, AES, RSA, and SHA; When performing an encryption operation, calling the encryption algorithm to encrypt the plaintext; When a decryption operation is performed, the decryption algorithm is called to decrypt the ciphertext.
5. A computer device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is run on the processor, the method for encrypting and decrypting data according to any one of claims 1 to 2 is executed.
6. A readable storage medium, characterized in that: The computer program stores a computer program, which executes the data encryption and decryption method according to any one of claims 1 to 2 when running on a processor.
