Data transmission method and device, equipment, storage medium and program product
The method automates decryption and protocol conversion using user-configured algorithms to enhance data transmission efficiency and security in financial platforms, addressing the inefficiencies of manual code modifications.
Patent Information
- Application Number
- CN202411190396.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-08-28
AI Technical Summary
Financial platforms face inefficiencies in data transmission due to the need for manual code modifications to accommodate different communication protocols when receiving financial product data from institutions, leading to low data transmission efficiency.
A method and apparatus that automates the decryption and protocol conversion of encrypted data using user-configured encryption and decryption algorithms, along with protocol conversion strategies, allowing platforms to identify and process financial product data without manual code modifications.
Enhances data transmission efficiency by enabling automated decryption and protocol conversion, improving user efficiency and security in data processing.
Smart Images

Figure CN119094350A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of big data technology, and in particular, relates to a method, device, equipment, storage medium and program product for data transmission. Background Art
[0002] At present, with the development of Internet finance, various financial institutions have launched financial products one after another. When financial products are launched on the platform, the platform may not be able to receive and identify the financial product data due to the different protocols supported by each platform. The platform staff is required to manually modify the code so that the platform can receive and identify the financial product data. In this way, every time the platform receives financial product data sent by the financial institution, the staff is required to manually modify the code, resulting in inefficient data transmission. Summary of the invention
[0003] The embodiments of the present application provide a method, apparatus, device, storage medium, and program product for data transmission, which can avoid manual code modification by staff and improve data transmission efficiency.
[0004] In a first aspect, an embodiment of the present application provides a method for data transmission, which is applied to a first device, and the method includes:
[0005] receiving a product access request sent by a second device, wherein the product access request includes a channel identifier;
[0006] receiving a product access data ciphertext sent by the second device, where the product access data ciphertext is obtained by encrypting the second device using a target encryption algorithm corresponding to the channel identifier sent by the first device;
[0007] Obtaining a target decryption algorithm corresponding to the channel identifier, wherein the target decryption algorithm is obtained by a user configuring a target interface corresponding to the channel identifier;
[0008] Decrypting the product access data ciphertext according to the target decryption algorithm to obtain the product access data;
[0009] Performing communication protocol conversion on the product access data according to the target protocol conversion strategy corresponding to the channel identifier to obtain target product access data, wherein the target protocol conversion strategy is generated based on the protocol conversion process configured by the user on the target interface;
[0010] Product access is performed based on the target product access data.
[0011] In a possible implementation manner, before receiving the product access data ciphertext sent by the second device, the method further includes:
[0012] Receive user input on the target interface, where the input includes the target encryption algorithm and the target decryption algorithm.
[0013] In a possible implementation, the receiving the user input on the target interface includes:
[0014] Receiving an encryption algorithm selected by a user from a set of preset encryption algorithms in the target interface, and determining that the encryption algorithm selected by the user is the target encryption algorithm;
[0015] A decryption algorithm selected by a user from a set of preset decryption algorithms in the target interface is received, and the decryption algorithm selected by the user is determined to be the target decryption algorithm.
[0016] In a possible implementation, the receiving the user input on the target interface includes:
[0017] Receiving an encryption algorithm configured by a user in a first preset configuration area of the target interface, and determining that the encryption algorithm configured by the user in the first preset configuration area of the target interface is the target encryption algorithm;
[0018] A decryption algorithm configured by a user in a first preset configuration area of the target interface is received, and the decryption algorithm configured by the user in the first preset configuration area of the target interface is determined to be the target decryption algorithm.
[0019] In a possible implementation, before performing communication protocol conversion on the product access data according to the target protocol conversion strategy corresponding to the channel identifier to obtain the target product access data, the method further includes:
[0020] A protocol conversion process configured by a user in a second preset configuration area of the target interface is received, and a protocol conversion strategy corresponding to the channel identifier is generated.
[0021] In a possible implementation, the performing product access based on the target product access data includes:
[0022] Acquire at least one target function module corresponding to the channel identifier, where the target function module is pre-configured by a user in the target interface;
[0023] Connecting the at least one target functional module according to a default connection sequence to obtain a default functional flow;
[0024] Access the target product access data according to the default functional process.
[0025] In a possible implementation, before connecting the at least one target functional module in a default connection order to obtain a default functional flow, the method further includes:
[0026] A connection order of at least one target function module configured by a user in a third preset configuration area of the target interface is received, and the connection order is used as the default connection order.
[0027] In a second aspect, an embodiment of the present application provides a data transmission apparatus, which is applied to a first device, and the apparatus includes:
[0028] A receiving module, configured to receive a product access request sent by a second device, wherein the product access request includes a channel identifier;
[0029] The receiving module is further used to receive the product access data ciphertext sent by the second device, where the product access data ciphertext is encrypted by the second device using the target encryption algorithm corresponding to the channel identifier sent by the first device;
[0030] An acquisition module, used to acquire a target decryption algorithm corresponding to the channel identifier, wherein the target decryption algorithm is configured by a user in a target interface corresponding to the channel identifier;
[0031] A decryption module, used to decrypt the product access data ciphertext according to the target decryption algorithm to obtain the product access data;
[0032] A conversion module, used to perform communication protocol conversion on the product access data according to a target protocol conversion strategy corresponding to the channel identifier to obtain target product access data, wherein the target protocol conversion strategy is generated based on a protocol conversion process configured by a user on the target interface;
[0033] An access module is used to perform product access based on the target product access data.
[0034] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the method for data transmission as described in any one of the first aspects is implemented.
[0035] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method for data transmission as described in any one of the first aspects is implemented.
[0036] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device can perform the data transmission method as described in any one of the first aspects.
[0037] The data transmission method, apparatus, device, storage medium and program product of the embodiments of the present application are as follows: after the first device receives the product access request sent by the second device, it receives the product access data ciphertext sent by the second device, searches the local for the decryption algorithm corresponding to the channel identifier in the product access request, and decrypts the product access data ciphertext. In this way, the second device encrypts the product access data using the encryption algorithm corresponding to the channel identifier sent by the first device, thereby improving the security of data transmission. Then, for the product access data obtained after decryption, the communication protocol is converted using the protocol conversion strategy corresponding to the channel identifier, so that the first device can identify and process the product access data after the protocol conversion, and subsequently implement product access based on the target product access data. Among them, the decryption algorithm and the protocol conversion strategy are obtained by the user's configuration in the target interface. The user can complete the modification of the code by configuring through the target interface, thereby improving the user's work efficiency and thus improving the data transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0039] Figure 1 It is a flowchart of a method for data transmission provided by an embodiment of the present application;
[0040] Figure 2 It is a flowchart of a method for configuring an encryption and decryption algorithm provided by an embodiment of the present application;
[0041] Figure 3 It is a flowchart of another method for configuring encryption and decryption algorithms provided by an embodiment of the present application;
[0042] Figure 4 is an exemplary schematic diagram of a target interface provided by an embodiment of the present application;
[0043] Figure 5 is an exemplary schematic diagram of another target interface provided by an embodiment of the present application;
[0044] Figure 6 It is a flowchart of a method for product access provided by an embodiment of the present application;
[0045] Figure 7 is an exemplary schematic diagram of another target interface provided by an embodiment of the present application;
[0046] Figure 8 is a structural schematic diagram of a data transmission device provided by another embodiment of the present application;
[0047] Fig. 9 It is a structural diagram of an electronic device provided by yet another embodiment of the present application. DETAILED DESCRIPTION
[0048] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0049] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0050] It should be noted that the acquisition, storage, use and processing of data in the embodiments of the present application are in compliance with the relevant provisions of national laws and regulations.
[0051] 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, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0052] At present, after launching financial products, financial institutions can publish them online on the financial product platform in the following two ways:
[0053] Method 1: A financial institution establishes a partnership with a financial product platform. The financial institution uses the standardized interface of the financial product platform to send financial product data to the financial product platform so that the financial product platform can publish the financial product on the platform. The financial product platform can be a bank.
[0054] Method 2: The financial product platform is connected to the banking channel to provide a financial product sales platform for financial institutions. The financial institutions send financial product data to the financial product platform through the standardized interface of the financial product platform, so that the financial product platform can publish the financial product on this platform.
[0055] When the above two methods are used to list financial products on the financial product platform, since the protocol supported by the financial product platform may be different from the communication protocol used by the financial institution to encapsulate the financial product data, the financial product platform cannot receive and identify the financial product data, and the platform staff need to manually modify the code, resulting in low data transmission efficiency.
[0056] In order to solve the problems in the prior art, embodiments of the present invention provide a method, apparatus, device, storage medium and program product for data transmission.
[0057] The following first introduces the data transmission method provided by the embodiment of the present invention.
[0058] Figure 1 FIG. 1 is a flow chart showing a method for data transmission provided by an embodiment of the present invention. The method is applied to a first device, such as Figure 1 As shown, the method may include the following steps:
[0059] S101. Receive a product access request sent by a second device.
[0060] The product access request includes a channel identifier. Specifically, the first device is an electronic device deployed with a financial product platform, and the second device is a device corresponding to a financial institution. The channel identifier is used to distinguish different financial institutions. For example, the channel identifier corresponding to financial institution 1 is identifier 1, and the channel identifier corresponding to financial institution 2 is identifier 2.
[0061] It should be noted that a financial institution may correspond to multiple second devices, and the channel identifier carried in the product access request sent by each second device corresponding to the same financial institution to the first device is the same.
[0062] S102: Receive a product access data ciphertext sent by the second device.
[0063] The product access data ciphertext is encrypted by the second device using the target encryption algorithm corresponding to the channel identifier sent by the first device.
[0064] S103: Obtain a target decryption algorithm corresponding to the channel identifier.
[0065] The target decryption algorithm is configured by the user in the target interface corresponding to the channel identifier. Each channel identifier corresponds to a target interface.
[0066] The target interface is a standardized template pre-configured by the user. The target interface includes multiple functional modules. The user can configure each functional module by selecting in a drop-down menu or configuring it by himself. After the user completes the configuration on the target interface, the first device can generate an execution script based on the target interface and the configuration information in the target interface. After the first device receives the product access data ciphertext, the product access data ciphertext is processed according to the execution script corresponding to the product access data ciphertext.
[0067] S104. Decrypt the product access data ciphertext according to the target decryption algorithm to obtain the product access data.
[0068] The target decryption algorithm and the target encryption algorithm correspond to the same channel identifier.
[0069] S105 . Perform communication protocol conversion on the product access data according to the target protocol conversion strategy corresponding to the channel identifier to obtain target product access data.
[0070] The target protocol conversion strategy is generated based on the protocol conversion process configured by the user on the target interface.
[0071] It should be noted that after the above-mentioned first device receives the product access request, the first device can search for the target interface corresponding to the channel identifier locally according to the channel identifier in the product access request, thereby obtaining the execution script corresponding to the channel identifier, which includes information such as the target decryption algorithm and the target protocol conversion strategy.
[0072] S106. Perform product access based on target product access data.
[0073] Among them, after receiving the target product access data, the first device launches the financial product corresponding to the target product access data on the financial product platform deployed by the first device to realize product access.
[0074] Using the above method, after the first device receives the product access request sent by the second device, it receives the product access data ciphertext sent by the second device, searches the local area for the decryption algorithm corresponding to the channel identifier in the product access request, and decrypts the product access data ciphertext. In this way, the second device encrypts the product access data using the encryption algorithm corresponding to the channel identifier sent by the first device, thereby improving the security of data transmission. Then, for the product access data obtained after decryption, the communication protocol is converted using the protocol conversion strategy corresponding to the channel identifier, so that the first device can identify and process the product access data after the protocol conversion, and subsequently implement product access based on the target product access data. Among them, the decryption algorithm and the protocol conversion strategy are configured by the user in the target interface. The user can complete the modification of the code by configuring through the target interface, which improves the user's work efficiency and thus improves the data transmission efficiency.
[0075] The following is an introduction to the method for the first device to generate a target encryption algorithm, a target decryption algorithm, and a protocol conversion strategy. Among them, before the above S102, receiving the user's configuration information on the target interface and generating the target encryption algorithm and the target decryption algorithm, the first device receives the user's input on the target interface and generates the target encryption algorithm and the target decryption algorithm. In this way, the user can pre-configure the required encryption algorithm and decryption algorithm in the target interface. After the user completes the configuration, the first device can generate an execution script based on the standardized target interface and the configuration information in the target interface. This avoids the user from processing codes other than the encryption algorithm and the decryption algorithm, thereby improving the user's work efficiency.
[0076] Specifically, there are two implementation methods for the first device to generate a target encryption algorithm and a target decryption algorithm:
[0077] In the first implementation, the user can select the corresponding encryption algorithm and decryption algorithm from the encryption algorithm set and the preset decryption algorithm set, such as Figure 2 As shown, the method includes:
[0078] S201. Receive an encryption algorithm selected by a user from a preset encryption algorithm set in a target interface, and determine that the encryption algorithm selected by the user is a target encryption algorithm.
[0079] S202: Receive a decryption algorithm selected by a user from a set of preset decryption algorithms in a target interface, and determine that the decryption algorithm selected by the user is a target decryption algorithm.
[0080] The target interface includes an encryption and decryption algorithm configuration module, and the preset encryption algorithm set and the preset decryption algorithm are preset by the user based on experience.
[0081] Specifically, the encryption and decryption algorithm configuration module of the target interface includes a drop-down menu, which includes encryption algorithms in the preset encryption algorithm set and decryption algorithms in the preset decryption algorithm set. The user can click the drop-down menu to select the target encryption algorithm and target decryption algorithm from the encryption algorithms and decryption algorithms provided in the drop-down menu.
[0082] By adopting the method provided in the embodiment of the present application, the user can select an encryption algorithm from the preset encryption algorithms by means of a drop-down menu in the target interface, and then the first device receives the encryption algorithm selected by the user to determine the target encryption algorithm. Similarly, the user selects an encryption algorithm from the preset decryption algorithms by means of a drop-down menu in the target interface, and then the first device receives the decryption algorithm selected by the user to determine the target decryption algorithm. In this way, the user selects the encryption algorithm and the decryption algorithm by means of a drop-down menu, which reduces the difficulty of the user configuring the encryption algorithm and the decryption algorithm, improves the configuration efficiency, and improves the efficiency of subsequent data transmission on the basis of improving the user configuration efficiency.
[0083] In the second implementation, the user can manually configure the corresponding encryption algorithm and decryption algorithm in the preset configuration area, such as Figure 3 As shown, the method includes:
[0084] S301. Receive an encryption algorithm configured by a user in a first preset configuration area of a target interface, and determine that the encryption algorithm configured by the user in the first preset configuration area of the target interface is a target encryption algorithm.
[0085] S302: Receive a decryption algorithm configured by a user in a first preset configuration area of a target interface, and determine that the decryption algorithm configured by the user in the first preset configuration area of the target interface is a target decryption algorithm.
[0086] It should be noted that, in order to meet the actual business needs of different users, the encryption and decryption algorithm configuration module of the target interface includes a first preset configuration area, and the user can configure the processing flow of the encryption and decryption algorithm in the first preset configuration area.
[0087] By adopting the method provided in the embodiment of the present application, the user configures the encryption algorithm and decryption algorithm in the first preset configuration area in the target interface, and after the first device receives the encryption algorithm and decryption algorithm configured by the user, it determines the target encryption algorithm and target decryption algorithm. In this way, the user can configure the encryption algorithm and decryption algorithm for data transmission according to actual business needs, which is more in line with actual business needs.
[0088] The following combination Figure 4 Introduce the encryption and decryption algorithm configuration module in the above target interface. Figure 4 The encryption and decryption algorithm configuration module in the target interface is exemplified. The target interface may also include other functional modules. Figure 4 The user can pre-configure the target interface and the functional modules included in the target interface according to actual business needs.
[0089] like Figure 4 As shown, the user can click the triangle on the right side of the encryption algorithm rectangular box to obtain a drop-down menu, which includes the encryption algorithms in the above-mentioned preset encryption algorithm set; similarly, the user can click the triangle on the right side of the decryption algorithm rectangular box to obtain a drop-down menu, which includes the decryption algorithms in the above-mentioned preset decryption algorithm set. Among them, if the encryption algorithm and decryption algorithm required by the user are not configured in the drop-down menu, the user can configure the corresponding encryption algorithm and decryption algorithm in the first preset configuration area according to actual business needs.
[0090] Regarding the method for generating a protocol conversion strategy for the above-mentioned first device, the first device performs communication protocol conversion on the product access data in the above-mentioned S105 according to the target protocol conversion strategy corresponding to the channel identifier, and before obtaining the target product access data, it can receive the protocol conversion process configured by the user in the second preset configuration area of the target interface, and generate a protocol conversion strategy corresponding to the channel identifier.
[0091] The target interface also includes a protocol conversion strategy configuration module, and the protocol conversion strategy configuration module includes a second preset configuration area.
[0092] Specifically, the user can configure the protocol conversion process in the second preset configuration area. After the first device receives the product access data, it processes the product access data according to the configured protocol conversion process, thereby obtaining the target product access data that can be recognized by the first device. In this way, the user can configure the protocol conversion process in the second preset configuration area according to actual business needs, and the first device generates a protocol conversion strategy according to the user-configured protocol conversion process to meet different business needs.
[0093] like Figure 5 As shown, Figure 5 This is an exemplary schematic diagram of another target interface provided in an embodiment of the present application. Figure 4 Based on the target interface shown, Figure 5 The target interface shown also includes a protocol conversion strategy configuration module. Specifically, the protocol conversion strategy configuration module includes a second preset configuration area, and the user can configure the protocol conversion process in the second preset configuration area. After the first device processes and obtains the product access data, the product access data is format converted according to the protocol conversion process pre-configured by the user to obtain the target product access data that can be recognized by the first device.
[0094] In some embodiments of the present application, since the functional requirements of the financial products launched by various financial institutions are different, that is, different financial products require different functions, different financial products can use different functions among the functions provided by the financial product platform. For example, the financial product platform provides function 1, function 2, function 3 and function 4, the functions required by financial product 1 are function 1 and function 3, the functions required by financial product 2 are function 1 and function 4, and the functions required by financial product 3 are function 1 to function 4. Therefore, for different financial products, the financial institution and the financial product platform negotiate the functions required by the financial product, and the first device releases and launches the financial products provided by the financial institution according to the negotiated functions.
[0095] Specifically, Figure 6 As shown, the above S106, product access based on target product access data, can be implemented as S601-S603:
[0096] S601. Acquire at least one target functional module corresponding to a channel identifier.
[0097] Among them, the target function module is pre-configured by the user in the target interface.
[0098] It should be noted that after the first device receives the product access request, the first device searches for the target interface corresponding to the channel identifier according to the channel identifier in the product access request and the correspondence between the channel identifier and the target interface. After finding the target interface, the product access data ciphertext is processed according to the execution script corresponding to the target interface, and the execution script includes the target function module.
[0099] S602: Connect at least one target functional module according to a default connection sequence to obtain a default functional flow.
[0100] The default connection sequence is that after the first device receives the connection sequence of at least one target functional module configured by the user in the third preset configuration area of the target interface, the first device uses the connection sequence as the default connection sequence.
[0101] Among them, the target interface also includes a connection order configuration module, which includes packaged functional modules. The user can determine the order of functional modules by dragging and dropping functional modules. After receiving the order of functional modules configured by the user, the first device generates a default connection order for the functional modules.
[0102] Specifically, the user can configure the connection order of the function modules in the third preset configuration area. After the first device receives the product access data, it connects the target function modules according to the configured connection order, thereby obtaining the functional flow corresponding to the financial product. In this way, the user can configure the connection order of the function modules in the third preset configuration area according to actual business needs, and the first device generates the functional flow according to the connection order configured by the user, meeting the needs of different business scenarios.
[0103] Specifically, Figure 7 As shown, Figure 7 This is another exemplary schematic diagram of a target interface provided in an embodiment of the present application. Figure 5 Based on the target interface shown, Figure 7 The target interface shown also includes a connection sequence configuration module, wherein the connection sequence configuration module includes a third preset configuration area. Each function module in the third preset configuration area encapsulates a fixed function execution process. For example, the quota measurement function module encapsulates a fixed execution process of the quota measurement function.
[0104] The user can configure the connection order by dragging the function modules in the third preset configuration area. When the first device accesses the financial product according to the target access data, the target function modules are connected according to the default connection order configured by the user, so that different functions and function processes can be provided for different financial products.
[0105] S603: Access the target product access data according to the default functional process.
[0106] By using the method provided in the embodiment of the present application, the first device connects the target function module corresponding to the channel identifier according to the default connection order to obtain the default function flow. Since the connection order of the function modules is pre-configured by the user based on actual business needs, the generated default function flow can meet the personalized needs of different users.
[0107] Based on the data transmission method provided in the above embodiment, the present application also provides a specific implementation of the data transmission device. Please refer to the following embodiment.
[0108] like Figure 8 As shown, Figure 8 The device for data transmission provided in the embodiment of the present application includes:
[0109] A receiving module 801 is configured to receive a product access request sent by a second device, where the product access request includes a channel identifier;
[0110] The receiving module 801 is further used to receive the product access data ciphertext sent by the second device, where the product access data ciphertext is obtained by encrypting the second device using the target encryption algorithm corresponding to the channel identifier sent by the first device;
[0111] An acquisition module 802 is used to acquire a target decryption algorithm corresponding to a channel identifier. The decryption algorithm is configured by a user in a target interface corresponding to a channel identifier.
[0112] The decryption module 803 is used to decrypt the product access data ciphertext according to the target decryption algorithm to obtain the product access data;
[0113] The conversion module 804 is used to perform communication protocol conversion on the product access data according to the target protocol conversion strategy corresponding to the channel identifier to obtain the target product access data, wherein the target protocol conversion strategy is generated based on the protocol conversion process configured by the user in the target interface;
[0114] The access module 805 is used to access products based on target product access data.
[0115] In a possible implementation, the device further includes:
[0116] The receiving module 801 is used to receive the user's input on the target interface before receiving the product access data ciphertext sent by the second device, and the input includes the target encryption algorithm and the target decryption algorithm.
[0117] In a possible implementation, the receiving module 801 is specifically configured to:
[0118] Receiving an encryption algorithm selected by a user from a set of preset encryption algorithms in the target interface, and determining that the encryption algorithm selected by the user is the target encryption algorithm;
[0119] A decryption algorithm selected by a user from a set of preset decryption algorithms in the target interface is received, and the decryption algorithm selected by the user is determined to be the target decryption algorithm.
[0120] In a possible implementation, the receiving module 801 is specifically configured to:
[0121] Receiving an encryption algorithm configured by a user in a first preset configuration area of the target interface, and determining that the encryption algorithm configured by the user in the first preset configuration area of the target interface is the target encryption algorithm;
[0122] A decryption algorithm configured by a user in a first preset configuration area of the target interface is received, and the decryption algorithm configured by the user in the first preset configuration area of the target interface is determined to be the target decryption algorithm.
[0123] In a possible implementation, the receiving module 801 is further configured to:
[0124] A protocol conversion process configured by a user in a second preset configuration area of the target interface is received, and a protocol conversion strategy corresponding to the channel identifier is generated.
[0125] In a possible implementation, the access module 805 is specifically configured to:
[0126] Acquire at least one target function module corresponding to the channel identifier, where the target function module is pre-configured by a user in the target interface;
[0127] Connecting the at least one target functional module according to a default connection sequence to obtain a default functional flow;
[0128] Access the target product access data according to the default functional process.
[0129] In a possible implementation, the receiving module 801 is further configured to:
[0130] A connection order of at least one target function module configured by a user in a third preset configuration area of the target interface is received, and the connection order is used as the default connection order.
[0131] The embodiments of the present application provide various modules of the device for data transmission, which can realize Figure 1 The functions of each step of the method for data transmission are provided, and the corresponding technical effects can be achieved. For the sake of brevity, they will not be repeated here.
[0132] Fig. 9 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.
[0133] The electronic device 900 may include a processor 901 and a memory 902 storing computer program instructions.
[0134] Specifically, the processor 901 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0135] The memory 902 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 902 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 902 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 902 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 902 is a non-volatile solid-state memory.
[0136] In certain embodiments, the memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present application.
[0137] The processor 901 implements any one of the data transmission methods in the above embodiments by reading and executing computer program instructions stored in the memory 902 .
[0138] In some examples, the electronic device 900 may further include a communication interface 903 and a bus 904. Fig. 9 As shown, the processor 901, the memory 902, and the communication interface 903 are connected via a bus 904 and communicate with each other.
[0139] The communication interface 903 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0140] Bus 904 includes hardware, software or both, and the parts of electronic equipment are coupled to each other.For example, but not limitation, bus 904 may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 904 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0141] Exemplarily, the electronic device 900 may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA).
[0142] The electronic device 900 can execute the data transmission method in the embodiment of the present application, thereby realizing the combination Figure 1 and Figure 8 A method and apparatus for data transmission are described.
[0143] In addition, in combination with the data transmission method in the above embodiment, the embodiment of the present application also provides a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the data transmission methods in the above embodiment is implemented. Examples of computer-readable storage media include non-transitory computer-readable storage media, such as portable disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, etc.
[0144] An embodiment of the present application further provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are executed by a processor, any one of the data transmission methods in the above embodiments is implemented.
[0145] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0146] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0147] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0148] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0149] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for data transmission, characterized in that: Applied to a first device, the method includes: receiving a product access request sent by a second device, wherein the product access request includes a channel identifier; receiving a product access data ciphertext sent by the second device, where the product access data ciphertext is obtained by encrypting the second device using a target encryption algorithm corresponding to the channel identifier sent by the first device; Obtaining a target decryption algorithm corresponding to the channel identifier, wherein the target decryption algorithm is obtained by a user configuring a target interface corresponding to the channel identifier; Decrypting the product access data ciphertext according to the target decryption algorithm to obtain the product access data; Performing communication protocol conversion on the product access data according to the target protocol conversion strategy corresponding to the channel identifier to obtain target product access data, wherein the target protocol conversion strategy is generated based on the protocol conversion process configured by the user on the target interface; Product access is performed based on the target product access data.
2. The method according to claim 1, characterized in that Before receiving the product access data ciphertext sent by the second device, the method further includes: Receive user input on the target interface, where the input includes the target encryption algorithm and the target decryption algorithm.
3. The method according to claim 2, characterized in that The receiving the user's input on the target interface includes: Receiving an encryption algorithm selected by a user from a set of preset encryption algorithms in the target interface, and determining that the encryption algorithm selected by the user is the target encryption algorithm; A decryption algorithm selected by a user from a set of preset decryption algorithms in the target interface is received, and the decryption algorithm selected by the user is determined to be the target decryption algorithm.
4. The method according to claim 2, characterized in that: The receiving the user's input on the target interface includes: Receiving an encryption algorithm configured by a user in a first preset configuration area of the target interface, and determining that the encryption algorithm configured by the user in the first preset configuration area of the target interface is the target encryption algorithm; A decryption algorithm configured by a user in a first preset configuration area of the target interface is received, and the decryption algorithm configured by the user in the first preset configuration area of the target interface is determined to be the target decryption algorithm.
5. The method according to claim 1, characterized in that Before performing communication protocol conversion on the product access data according to the target protocol conversion strategy corresponding to the channel identifier to obtain the target product access data, the method further includes: A protocol conversion process configured by a user in a second preset configuration area of the target interface is received, and a protocol conversion strategy corresponding to the channel identifier is generated.
6. The method according to claim 1, characterized in that The performing product access based on the target product access data includes: Acquire at least one target function module corresponding to the channel identifier, where the target function module is pre-configured by a user in the target interface; Connecting the at least one target functional module according to a default connection sequence to obtain a default functional flow; Access the target product access data according to the default functional process.
7. The method according to claim 6, characterized in that Before connecting the at least one target functional module in a default connection order to obtain a default functional flow, the method further includes: A connection order of at least one target function module configured by a user in a third preset configuration area of the target interface is received, and the connection order is used as the default connection order.
8. A data transmission device, characterized in that: Applied to a first device, the apparatus comprises: A receiving module, configured to receive a product access request sent by a second device, wherein the product access request includes a channel identifier; The receiving module is further used to receive the product access data ciphertext sent by the second device, where the product access data ciphertext is encrypted by the second device using the target encryption algorithm corresponding to the channel identifier sent by the first device; An acquisition module, used to acquire a target decryption algorithm corresponding to the channel identifier, wherein the target decryption algorithm is configured by a user in a target interface corresponding to the channel identifier; A decryption module, used to decrypt the product access data ciphertext according to the target decryption algorithm to obtain the product access data; A conversion module, used to perform communication protocol conversion on the product access data according to a target protocol conversion strategy corresponding to the channel identifier to obtain target product access data, wherein the target protocol conversion strategy is generated based on a protocol conversion process configured by a user on the target interface; An access module is used to perform product access based on the target product access data.
9. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the method for data transmission according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for data transmission according to any one of claims 1 to 7 is implemented.
11. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to perform the data transmission method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Internet of Things cross-platform resource interaction method and system
CN108429808A
Cloud platform interface protocol conversion method and device
CN113079198A
Data transmission method, Internet of Things system, electronic equipment and storage medium
CN114500061A
Method, device and equipment for rapidly accessing loan business system through channel and medium
CN115082185A
Gateway verification method and device, client device, server gateway and medium
CN116318733A
