Business processing method and device, electronic equipment and computer readable medium

By obtaining and decrypting the execution file in the Electron application, generating and verifying the signature, the problem that the core code logic of the Electron application is easily cracked is solved, and the security of the interaction between the client and the server is improved.

CN118981802AActive Publication Date: 2024-11-19CHINA CONSTRUCTION BANK +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411094028.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-11-19
Estimated Expiration
2044-08-09

AI Technical Summary

Technical Problem

The core code logic of Electron applications is easy to be cracked, and the content of the interaction between clients and servers is poor.

Method used

By obtaining the file decryption code and encrypting file in the execution file when the program is started, using the file decryption code to decrypt the encrypted file, triggering the cross-platform desktop application framework, obtaining the server's unique identifier and performing secondary encryption, generating an initial signature, and performing data processing Process, generate the final signature, and perform business verification based on the signature to improve the security of interactive content.

Benefits of technology

It effectively improves the security of the content interactive between the client and the server, prevents cracking and tampering, and enhances the authenticity and integrity verification of the source of information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118981802A_ABST
    Figure CN118981802A_ABST
Patent Text Reader

Abstract

The invention discloses a service processing method and device, electronic equipment and a computer readable medium, and relates to the technical field of computers.The method comprises the steps that in response to program starting, a corresponding execution file is obtained, and a file decryption code and an encrypted file are obtained from the execution file; decrypting the encrypted file by using the file decryption code to obtain a decrypted file, triggering the operation of the cross-platform desktop application framework to create a window component, and loading and displaying the webpage by the window component; obtaining the unique identifier of the server through the webpage, and calling a service interface to generate an initial signature through secondary encryption based on the unique identifier of the server; performing data processing on the initial signature by the cross-platform desktop application framework to generate a final signature, and returning the final signature to the webpage; and based on the server unique identifier and the final signature carried by the webpage, executing a service verification method and returning service verification result data. And the security of the interaction content between the client and the server is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a business processing method, device, electronic device and computer-readable medium. Background Art

[0002] Currently, the core code logic of Electron applications is written in Javascript. Although the Electron official website provides code obfuscation and ASAR archiving solutions, hackers can still easily unpack the application, modify the logic, repackage it, and then distribute the cracked version. The interactive content when the client and server interact has poor security. Summary of the invention

[0003] In view of this, the embodiments of the present application provide a business processing method, device, electronic device and computer-readable medium, which can solve the problem of poor security of interactive content when the existing client and server interact.

[0004] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present application, a business processing method is provided, including: in response to program startup, obtaining a corresponding execution file, and then obtaining a file decryption code and an encrypted file from the execution file; using the file decryption code to decrypt the encrypted file to obtain a decrypted file, triggering the operation of a cross-platform desktop application framework to create a window component, and the window component loads and displays a web page; obtaining a server unique identifier through the web page, and then calling a business interface to generate an initial signature based on the server unique identifier after secondary encryption; the cross-platform desktop application framework performs data processing on the initial signature to generate a final signature, and returns the final signature to the web page; based on the server unique identifier and the final signature carried by the web page, executing a business verification method and returning business verification result data.

[0005] Optionally, an initial signature is generated based on the server unique identifier through secondary encryption, including: calling a cross-platform desktop application framework to perform a first encryption on the server unique identifier to generate an encrypted identifier; calling a virtual instruction set architecture method to perform a second encryption on the encrypted identifier to generate an initial signature.

[0006] Optionally, the cross-platform desktop application framework performs data processing on the initial signature to generate a final signature, including: determining a format of the initial signature, and in response to the format being inconsistent with a preset format, adjusting the format of the initial signature to a preset format to generate a final signature.

[0007] Optionally, a business verification method is executed, including: performing source authenticity verification based on the server unique identifier; and performing information integrity verification based on the final signature.

[0008] Optionally, the method also includes: if the source authenticity verification fails or the information integrity verification fails, the business verification result data corresponds to the business verification failure; if the source authenticity verification succeeds and the information integrity verification succeeds, the business verification result data corresponds to the business verification success.

[0009] Optionally, after obtaining the server unique identifier through the web page, the method also includes: obtaining a count record corresponding to the server unique identifier, executing a business interface call process in response to the count record being empty, and prompting duplicate information in response to the count record being non-empty.

[0010] In addition, the present application also provides a business processing device, including: an acquisition unit, configured to obtain the corresponding execution file in response to program startup, and then obtain the file decryption code and the encrypted file from the execution file; a page loading unit, configured to use the file decryption code to decrypt the encrypted file to obtain the decrypted file, trigger the operation of the cross-platform desktop application framework to create a window component, and the window component loads and displays the web page; an encryption unit, configured to obtain the server unique identifier through the web page, and then call the business interface to generate an initial signature based on the server unique identifier after secondary encryption; a data processing unit, configured to perform data processing on the initial signature by the cross-platform desktop application framework to generate a final signature, and return the final signature to the web page; a business verification unit, configured to execute a business verification method based on the server unique identifier and the final signature carried by the web page and return the business verification result data.

[0011] Optionally, the encryption unit is further configured to: call the cross-platform desktop application framework to perform a first encryption on the server unique identifier to generate an encrypted identifier; and call the virtual instruction set architecture method to perform a second encryption on the encrypted identifier to generate an initial signature.

[0012] Optionally, the data processing unit is further configured to: determine the format of the initial signature, and in response to the format being inconsistent with a preset format, adjust the format of the initial signature to the preset format to generate a final signature.

[0013] Optionally, the business verification unit is further configured to: perform source authenticity verification based on the server unique identifier; and perform information integrity verification based on the final signature.

[0014] Optionally, the business verification unit is further configured: if the source authenticity verification fails or the information integrity verification fails, the business verification result data corresponds to the business verification failure; if the source authenticity verification succeeds and the information integrity verification succeeds, the business verification result data corresponds to the business verification success.

[0015] Optionally, the device also includes a prompt unit configured to: obtain a counting record corresponding to the server unique identifier, execute a business interface call process in response to the counting record being empty, and prompt duplicate information in response to the counting record being non-empty.

[0016] In addition, the present application also provides a business processing electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the one or more processors implement the business processing method as described above.

[0017] In addition, the present application also provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the business processing method as described above is implemented.

[0018] To achieve the above objective, according to another aspect of the embodiments of the present application, a computer program product is provided.

[0019] A computer program product according to an embodiment of the present application includes a computer program, and when the program is executed by a processor, the business processing method provided by the embodiment of the present application is implemented.

[0020] One embodiment of the above invention has the following advantages or beneficial effects: the application obtains the corresponding execution file in response to program startup, and then obtains the file decryption code and encrypted file from the execution file; uses the file decryption code to decrypt the encrypted file to obtain the decrypted file, triggers the operation of the cross-platform desktop application framework to create a window component, and the window component loads and displays the web page; obtains the server unique identifier through the web page, and then calls the business interface to generate an initial signature based on the server unique identifier through secondary encryption; the cross-platform desktop application framework processes the initial signature to generate a final signature, and returns the final signature to the web page; based on the server unique identifier and the final signature carried by the web page, executes the business verification method and returns the business verification result data. Improve the security of the interactive content between the client and the server.

[0021] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings are used to better understand the present application and do not constitute an improper limitation on the present application.

[0023] Figure 1 is a schematic diagram of the main process of a business processing method according to an embodiment of the present application;

[0024] Figure 2 is a schematic diagram of the main process of a business processing method according to an embodiment of the present application;

[0025] Figure 3 It is a main flow chart of a business processing method according to an embodiment of the present application;

[0026] Figure 4 is a schematic diagram of main units of a service processing device according to an embodiment of the present application;

[0027] Figure 5 is an exemplary system architecture diagram to which the embodiments of the present application can be applied;

[0028] Figure 6 It is a structural diagram of a computer system of a terminal device or server suitable for implementing an embodiment of the present application. DETAILED DESCRIPTION

[0029] The following is a description of the exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, and they should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of known functions and structures is omitted in the following description. It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of the present application are in compliance with the relevant provisions of national laws and regulations. It should be noted that in the embodiments of the present application, certain software, components, models, and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or must have used the solution. In the technical solution of the present application, the collection, analysis, use, transmission, storage, and other aspects of the user's personal information involved are in compliance with the provisions of relevant laws and regulations, and are used for legal and reasonable purposes, and are not shared, leaked, or sold outside of these legal uses, and are subject to supervision and management by regulatory authorities. Take necessary measures to prevent illegal access to such user personal information data, ensure that persons who have access to such personal information data comply with relevant laws and regulations, and ensure the security of user personal information. Once such user personal information data is no longer needed, the risk should be minimized by limiting or even prohibiting data collection and / or deleting the data.

[0030] When used, including in certain related applications, user privacy is protected by de-identifying data, such as by removing specific identifiers when used, controlling the amount or specificity of data stored, controlling how data is stored, and / or other methods of de-identification.

[0031] Figure 1is a schematic diagram of the main process of a business processing method according to an embodiment of the present application, such as Figure 1 As shown, the business processing method mainly includes the following steps S101 to S105.

[0032] Step S101, in response to program startup, obtain the corresponding execution file, and then obtain the file decryption code and the encrypted file from the execution file.

[0033] In this embodiment, the execution subject of the business processing method (for example, a server) can detect in real time whether a program is started by means of a wired connection or a wireless connection. If it is detected that a program is started, the execution file corresponding to the started program is obtained. The execution file may carry a file decryption code and an encrypted file. The execution subject can obtain the carried file decryption code and encrypted file from the execution file. Among them, the file decryption code is a decryption code corresponding to the encrypted archive file. The encrypted file is a file obtained by encrypting the archive file.

[0034] Step S102, decrypting the encrypted file using the file decryption code to obtain a decrypted file, triggering the running of a cross-platform desktop application framework to create a window component, and loading and displaying the web page by the window component.

[0035] The encrypted file in the executable file is decrypted using the file decryption code in the executable file to obtain the decrypted file. After obtaining the decrypted file, the cross-platform desktop application framework Electron JS is triggered to run to create a window component, and the created window component loads the web page (i.e., Web page) and displays it.

[0036] Step S103, obtaining the unique identifier of the server through the web page, and then calling the business interface to generate an initial signature based on the unique identifier of the server through secondary encryption.

[0037] Interact with the server through the web page to obtain the server's unique server identifier. The cross-platform desktop application framework Electron JS is called through the business interface to encrypt the server's unique identifier for the first time to generate an encrypted identifier. The encrypted identifier after the first encryption is re-encrypted by the virtual instruction set architecture method (i.e., WebAssembly method) to obtain the second encrypted identifier, i.e., the initial signature. By encrypting the server's unique identifier twice using different methods, it can be ensured that the generated initial signature is difficult to crack, thereby ensuring the security of the corresponding business processing.

[0038] Specifically, after obtaining the unique server identifier through the web page, the method further includes: obtaining a count record corresponding to the unique server identifier, executing a business interface call process in response to the count record being empty, and prompting duplicate information in response to the count record being non-empty.

[0039] The server unique identifier can only be obtained once within a preset period of time to prevent duplication, which helps avoid waste of computing resources and improve business processing performance.

[0040] In step S104, the cross-platform desktop application framework processes the initial signature to generate a final signature, and returns the final signature to the web page.

[0041] Specifically, the cross-platform desktop application framework performs data processing on the initial signature to generate a final signature, including: determining the format of the initial signature, and in response to the format being inconsistent with a preset format, adjusting the format of the initial signature to the preset format to generate a final signature.

[0042] The data processing of the initial signature may include format adjustment, image-text conversion, scrambling, etc., to improve the security and confidentiality of the initial signature.

[0043] Step S105, based on the unique server identifier and final signature carried by the web page, execute the business verification method and return the business verification result data.

[0044] Specifically, the business verification method is executed, including: performing source authenticity verification based on the server unique identifier; and performing information integrity verification based on the final signature.

[0045] The server unique identifier is used for source verification by matching the server unique identifier with each source identifier in the preset source identifier library. If a successful match indicates that the server unique identifier is in the preset source identifier library, then the source authenticity verification is determined to be successful.

[0046] The final signature is used to verify the integrity of the message. After receiving the message and the final signature, the public key is used to decrypt the final signature to obtain the original hash value. At the same time, the same hash function is used to generate a hash value for the received message. If the two hash values ​​are the same, the verification is successful, indicating that the message has not been tampered with, is complete, and is indeed from the claimed sender.

[0047] Specifically, the business processing method also includes: if the source authenticity verification fails or the information integrity verification fails, the business verification result data corresponds to the business verification failure; if the source authenticity verification succeeds and the information integrity verification succeeds, the business verification result data corresponds to the business verification success.

[0048] This embodiment obtains the corresponding execution file in response to program startup, and then obtains the file decryption code and encrypted file from the execution file; uses the file decryption code to decrypt the encrypted file to obtain the decrypted file, triggers the operation of the cross-platform desktop application framework to create a window component, and the window component loads and displays the web page; obtains the server unique identifier through the web page, and then calls the business interface to generate an initial signature based on the server unique identifier through secondary encryption; the cross-platform desktop application framework processes the initial signature to generate a final signature, and returns the final signature to the web page; based on the server unique identifier and the final signature carried by the web page, executes the business verification method and returns the business verification result data. Improve the security of the interactive content between the client and the server.

[0049] Figure 2 is a main flow chart of a business processing method according to an embodiment of the present application, such as Figure 2 As shown, the business processing method mainly includes the following steps S201 to S206.

[0050] Step S201, in response to program startup, obtain the corresponding execution file, and then obtain the file decryption code and the encrypted file from the execution file.

[0051] If a program is detected to be started, the execution file corresponding to the started program is obtained. The execution file may carry a file decryption code and an encrypted file. The execution subject can obtain the file decryption code and the encrypted file carried from the execution file. Among them, the file decryption code is the decryption code corresponding to the encrypted archive file. The encrypted file is the file obtained by encrypting the archive file.

[0052] Step S202, decrypting the encrypted file using the file decryption code to obtain a decrypted file, triggering the running of the cross-platform desktop application framework to create a window component, and the window component loads and displays the web page.

[0053] When the decrypted file is obtained, the cross-platform desktop application framework is triggered to run, so as to create a window component based on the loaded decrypted file. The created window component loads and displays the web page corresponding to the decrypted file.

[0054] Step S203, obtaining the unique identifier of the server through the web page, and then calling the business interface to call the cross-platform desktop application framework to perform a first encryption on the unique identifier of the server to generate an encrypted identifier.

[0055] When the cross-platform desktop application framework wants to encrypt the server unique identifier for the first time, it can first use a first hash function to generate a first hash value for the server unique identifier, and then use a private key to encrypt the first hash value to generate an encrypted identifier.

[0056] Step S204, calling the virtual instruction set architecture method to encrypt the encrypted identifier for a second time to generate an initial signature.

[0057] The virtual instruction set architecture method performs a second encryption on the encrypted identifier, and can first use a second hash function to generate a second hash value for the encrypted identifier, and then use a private key to encrypt the second hash value to generate an initial signature. This ensures that the generated initial signature is difficult to crack, and guarantees the security of the corresponding business processing.

[0058] It can be understood that the first hash function and the second hash function can be any two different hash functions among hash functions (HashFunctions), additive hash function (Adler Hash), multiplicative hash function (Multiplicative Hash), division hash function (Division Hash), perfect hash function (Perfect Hashing), and secure hash function (Cryptographic Hash).

[0059] In step S205, the cross-platform desktop application framework processes the initial signature to generate a final signature, and returns the final signature to the web page.

[0060] The data processing of the initial signature may include format adjustment, image-text conversion, scrambling, etc., to improve the security and confidentiality of the initial signature.

[0061] Step S206, based on the unique server identifier and final signature carried by the web page, execute the business verification method and return the business verification result data.

[0062] The execution subject can generate a business verification task based on the server unique identifier and final signature carried by the web page, and call the thread pool to execute the business verification task to improve the response speed of business processing.

[0063] Among them, the server unique identifier is used for source verification, by matching the server unique identifier with each source identifier in the preset source identifier library. If the match is successful, it means that the server unique identifier is in the preset source identifier library, and the source authenticity verification is determined to be successful. The final signature is used to verify the integrity of the information. After receiving the information and the final signature, the final signature is decrypted using the public key to obtain the original hash value. At the same time, the same hash function is used to generate a hash value for the received information. If the two hash values ​​are the same, then the verification is successful, indicating that the information has not been tampered with, is complete, and does come from the claimed sender. The business verification result data may include business verification success and business verification failure. The business processing method of the embodiment of the present application can improve the security of the content interacted between the client and the server.

[0064] Figure 3 It is a main flow diagram of a business processing method according to an embodiment of the present application. The business processing method of the embodiment of the present application jointly protects the client content security through a variety of technology stacks including client native code, client JS code, WebAssembly technology, web page code, and server code. Protect the client content security through a complete set of processes. In the embodiment of the present application, Electron: Electron is a cross-platform desktop application framework built using JavaScript, HTML, and CSS. Electron is compatible with Mac, Windows, and Linux, and can build applications for three platforms. WebAssembly: WebAssembly is a technical solution that can be written in non-JavaScript programming languages ​​and can run on browsers. These codes can be C, C++, or Rust, etc., which will be compiled into the browser and run on the CPU at near-native speeds. These codes are in the form of binary files, and they can be used directly as modules in JavaScript.

[0065] like Figure 3 As shown, the Electron App development stages related to business processing are shown as ①-②.

[0066] ① Disable browser and node debugging switches at the application layer to prevent the possibility of obtaining source code through debugging tools.

[0067] ② Bytecode the cross-platform desktop application framework (Electron JS); package and generate ASAR archive files; develop a file encryption program to encrypt the archive files and generate CSAR files (Cloud ServiceArchive); modify the Electron native code, add CSAR file decryption code, delete debugging tool related dependencies, and repackage to generate executable files.

[0068] The operation stages are shown in ③-⑩.

[0069] ③The program starts, the Electron native code decrypts the CSAR file in the executable file and loads it, entering the Electron JS running stage.

[0070] ④Electron JS creates a window component, which loads and displays the web page.

[0071] ⑤ Before calling the business interface, the web page communicates with the server to obtain the server's unique identifier (one identifier each time, and the server controls anti-replay).

[0072] ⑥The web page calls the Electron JS (cross-platform desktop application framework) method and passes in the server's unique identifier to obtain the signature.

[0073] ⑦Electron JS encrypts the server's unique identifier for the first time and calls the WebAssembly (virtual instruction set architecture) method to pass the identifier after the first encryption, that is, to pass the encrypted identifier.

[0074] ⑧The WebAssembly method performs a second encryption on the first encrypted identifier (i.e., the encrypted identifier), generates an initial signature, and returns it to Electron JS.

[0075] ⑨Electron JS processes the initial signature, generates the final signature, and returns it to the web page.

[0076] ⑩The web page carries the unique server ID obtained in step ⑤ and the initial signature to call the business method. The server verifies the unique ID and initial signature and returns the result after successful verification. The client and server communicate by signing the message through multiple technologies, which is difficult to crack.

[0077] The embodiment of the present application protects the security of the client by combining multiple technologies. It is impossible to crack the client by cracking only a single technology stack. It is necessary to crack all technologies before cracking successfully, which is quite difficult. The whole process is autonomous and controllable, and the encryption and decryption logic can be customized. By protecting the communication between the client and the server, even if the client is unpacked, it is difficult to crack the client by modifying the logic, thereby improving the security of the client.

[0078] Figure 4 Schematic diagram of the main units of the service processing device according to an embodiment of the present application. Figure 4 As shown, the business processing device 400 includes an acquisition unit 401, a page loading unit 402, an encryption unit 403, a data processing unit 404 and a business verification unit 405.

[0079] The acquisition unit 401 is configured to acquire the corresponding execution file in response to the program startup, and then acquire the file decryption code and the encrypted file from the execution file.

[0080] The page loading unit 402 is configured to decrypt the encrypted file using the file decryption code to obtain a decrypted file, trigger the running of the cross-platform desktop application framework to create a window component, and load and display the web page through the window component.

[0081] The encryption unit 403 is configured to obtain the unique identifier of the server through the web page, and then call the service interface to generate an initial signature based on the unique identifier of the server through secondary encryption.

[0082] The data processing unit 404 is configured to perform data processing on the initial signature through the cross-platform desktop application framework to generate a final signature, and return the final signature to the web page.

[0083] The business verification unit 405 is configured to execute a business verification method and return business verification result data based on the unique server identifier and the final signature carried by the web page.

[0084] In some embodiments, the encryption unit 403 is further configured to: call the cross-platform desktop application framework to perform a first encryption on the server unique identifier to generate an encrypted identifier; and call the virtual instruction set architecture method to perform a second encryption on the encrypted identifier to generate an initial signature.

[0085] In some embodiments, the data processing unit 404 is further configured to: determine the format of the initial signature, and in response to the format being inconsistent with a preset format, adjust the format of the initial signature to the preset format to generate a final signature.

[0086] In some embodiments, the business verification unit 405 is further configured to: perform source authenticity verification based on the server unique identifier; and perform information integrity verification based on the final signature.

[0087] In some embodiments, the business verification unit 405 is further configured: if the source authenticity verification fails or the information integrity verification fails, the business verification result data corresponds to the business verification failure; if the source authenticity verification succeeds and the information integrity verification succeeds, the business verification result data corresponds to the business verification success.

[0088] In some embodiments, the service processing device further includes Figure 4 The prompt unit not shown in the figure is configured to: obtain the counting record corresponding to the unique identifier of the server, and in response to the counting record being empty, execute the business interface calling process, and in response to the counting record being non-empty, prompt duplicate information.

[0089] It should be noted that the business processing method and the business processing device of the present application have a corresponding relationship in terms of specific implementation content, so the repeated content will not be described again.

[0090] Figure 5 An exemplary system architecture 500 is shown to which the service processing method or service processing device according to the embodiment of the present application can be applied.

[0091] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0092] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).

[0093] The terminal devices 501, 502, 503 may be various electronic devices having a service processing screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0094] Server 505 can be a server that provides various services, such as a background management server that provides support for programs started by users using terminal devices 501, 502, and 503 (only as an example). The background management server can respond to the program startup, obtain the corresponding execution file, and then obtain the file decryption code and encrypted file from the execution file; use the file decryption code to decrypt the encrypted file to obtain the decrypted file, trigger the operation of the cross-platform desktop application framework to create a window component, and the window component loads and displays the web page; obtain the server unique identifier through the web page, and then call the business interface to generate an initial signature based on the server unique identifier after secondary encryption; the cross-platform desktop application framework processes the initial signature to generate a final signature, and returns the final signature to the web page; based on the server unique identifier and final signature carried by the web page, execute the business verification method and return the business verification result data. Improve the security of the interactive content between the client and the server.

[0095] It should be noted that the business processing method provided in the embodiment of the present application is generally executed by the server 505 , and accordingly, the business processing device is generally set in the server 505 .

[0096] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0097] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present application. Figure 6 The terminal device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0098] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0099] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0100] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present application are executed.

[0101] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. Computer-readable storage media may include, for example, but are not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0102] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession 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 block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0103] The units involved in the embodiments described in the present application may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes an acquisition unit, a page loading unit, an encryption unit, a data processing unit, and a business verification unit. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0104] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device responds to the program startup, obtains the corresponding execution file, and then obtains the file decryption code and the encrypted file from the execution file; uses the file decryption code to decrypt the encrypted file to obtain the decrypted file, triggers the operation of the cross-platform desktop application framework to create a window component, and the window component loads and displays the web page; obtains the server unique identifier through the web page, and then calls the business interface to generate an initial signature based on the server unique identifier after secondary encryption; the cross-platform desktop application framework processes the initial signature to generate a final signature, and returns the final signature to the web page; based on the server unique identifier and the final signature carried by the web page, executes the business verification method and returns the business verification result data.

[0105] The computer program product of the present application includes a computer program, and when the computer program is executed by a processor, the business processing method in the embodiment of the present application is implemented.

[0106] According to the technical solution of the embodiment of the present application, the security of the interactive content between the client and the server can be improved.

[0107] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A business processing method, characterized in that: include: In response to the program being started, obtaining a corresponding execution file, and then obtaining a file decryption code and an encrypted file from the execution file; Decrypting the encrypted file using the file decryption code to obtain a decrypted file, triggering the running of a cross-platform desktop application framework to create a window component, and loading and displaying a web page by the window component; Obtaining the unique server identifier through the web page, and then calling the service interface to generate an initial signature based on the unique server identifier through secondary encryption; The cross-platform desktop application framework processes the initial signature to generate a final signature, and returns the final signature to the web page; Based on the unique server identifier and the final signature carried by the web page, a business verification method is executed and business verification result data is returned.

2. The method according to claim 1, characterized in that The generating of the initial signature based on the unique identification of the server through secondary encryption includes: Calling a cross-platform desktop application framework to perform a first encryption on the server unique identifier to generate an encrypted identifier; The virtual instruction set architecture method is called to encrypt the encrypted identifier for a second time to generate an initial signature.

3. The method according to claim 1, characterized in that The cross-platform desktop application framework processes the initial signature to generate a final signature, including: The format of the initial signature is determined, and in response to the format being inconsistent with a preset format, the format of the initial signature is adjusted to the preset format to generate a final signature.

4. The method according to claim 1, characterized in that: The execution service verification method comprises: Based on the unique identifier of the server, perform source authenticity verification; Based on the final signature, a message integrity check is performed.

5. The method according to claim 4, characterized in that The method further comprises: If the source authenticity check fails or the information integrity check fails, the business verification result data corresponds to the business verification failure; If the source authenticity verification is successful and the information integrity verification is successful, the business verification result data corresponds to the business verification success.

6. The method according to claim 1, characterized in that After obtaining the unique server identifier through the web page, the method further includes: A count record corresponding to the unique identifier of the server is obtained, and in response to the count record being empty, a business interface call process is executed, and in response to the count record being non-empty, duplicate information is prompted.

7. A service processing device, characterized in that: include: an acquisition unit, configured to acquire a corresponding execution file in response to program startup, and then acquire a file decryption code and an encrypted file from the execution file; A page loading unit is configured to decrypt the encrypted file using the file decryption code to obtain a decrypted file, trigger the running of a cross-platform desktop application framework to create a window component, and load and display a web page by the window component; The encryption unit is configured to obtain a unique server identifier through the web page, and then call a service interface to generate an initial signature based on the unique server identifier through secondary encryption; A data processing unit is configured to perform data processing on the initial signature by the cross-platform desktop application framework to generate a final signature, and return the final signature to the web page; The business verification unit is configured to execute a business verification method and return business verification result data based on the unique server identifier and the final signature carried by the web page.

8. The device according to claim 7, characterized in that The encryption unit is further configured to: Calling a cross-platform desktop application framework to perform a first encryption on the server unique identifier to generate an encrypted identifier; The virtual instruction set architecture method is called to encrypt the encrypted identifier for a second time to generate an initial signature.

9. The device according to claim 7, characterized in that The data processing unit is further configured to: The format of the initial signature is determined, and in response to the format being inconsistent with a preset format, the format of the initial signature is adjusted to the preset format to generate a final signature.

10. The device according to claim 7, characterized in that The service verification unit is further configured to: Based on the unique identifier of the server, perform source authenticity verification; Based on the final signature, a message integrity check is performed.

11. The device according to claim 10, characterized in that The service verification unit is further configured to: If the source authenticity check fails or the information integrity check fails, the business verification result data corresponds to the business verification failure; If the source authenticity verification is successful and the information integrity verification is successful, the business verification result data corresponds to the business verification success.

12. The device according to claim 7, characterized in that The device also includes a prompting unit configured to: A count record corresponding to the unique identifier of the server is obtained, and in response to the count record being empty, a business interface call process is executed, and in response to the count record being non-empty, duplicate information is prompted.

13. A business processing electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

14. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Business display method, device, system, electronic equipment and computer readable medium

    CN111625277A

  • Key distribution method and device, computer equipment and storage medium

    CN117155549A

  • Signature program encryption method and device and decryption method and device

    CN118413369A

  • Secret key access control method and apparatus

    WO2021159818A1