Data processing method, device and storage medium for different data recipients

By selecting an adaptive encryption function based on the identity of the data receiver, encrypting the source data, and building a mapping relationship, the problem that the encryption method in the existing technology cannot adapt to the inconsistent format of different suppliers and ciphertext is realized. Unified management and rapid traceability of encrypted ciphertexts.

CN117596053BActive Publication Date: 2024-11-26CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311616696.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-29
Publication Date
2024-11-26
Estimated Expiration
2043-11-29

AI Technical Summary

Technical Problem

The existing data encryption methods cannot be adaptively adjusted for different suppliers, the ciphertext format after encryption is not unified, and the traceability process of encrypted ciphertext is cumbersome, making it difficult to accurately trace the source data.

Method used

By obtaining the identity of the data recipient, determining the target preset encryption function, encrypting the source data, and building a mapping relationship between the target ciphertext and the source data, realizing unified management and two-way traceability of the encrypted ciphertext.

Benefits of technology

It realizes adaptive encryption processing for different data recipients, unify the length of encrypted ciphertexts, facilitate management, and quickly obtain or trace the target ciphertext or source data through mapping relationships, simplifying the traceability process of encrypted ciphertexts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117596053B_ABST
    Figure CN117596053B_ABST
Patent Text Reader

Abstract

The present application relates to the field of data processing technology, and discloses a data processing method, device, and storage medium for different data recipients. The method includes: obtaining the identity of the data recipient, and determining a target preset encryption function based on the identity; encrypting the target source data according to the target preset encryption function, and converting the obtained initial ciphertext into a target ciphertext of a preset string length; constructing a target mapping relationship between the target ciphertext and the target source data to obtain the target ciphertext or target source data according to the target mapping relationship. The present application selects adaptive preset encryption functions for different data recipients, and unifies the length of the encrypted ciphertext to the preset string length, so as to facilitate the unified management of the encrypted ciphertext. At the same time, a target mapping relationship between the target ciphertext and the target source data is constructed to facilitate two-way traceability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, device and storage medium for different data recipients. Background Art

[0002] In the process of developing the media resource application of vehicle control, as a server, it will access the services of multiple suppliers due to business needs. The suppliers provide APIs through the http protocol. Some string type parameters are sensitive parameters that must be transmitted and need to be encrypted.

[0003] The existing data encryption method cannot be adaptively adjusted for different suppliers. At the same time, the encrypted ciphertext has different formats, which is not convenient for ciphertext management. In addition, the tracing process of the encrypted ciphertext requires tedious reverse decryption calculations to accurately trace the source data. Summary of the invention

[0004] In view of the above problems, the present application provides a data processing method, device and storage medium for different data recipients, which are used to select adaptive preset encryption functions for different data recipients and perform bidirectional traceability based on the constructed mapping relationship.

[0005] According to one aspect of an embodiment of the present application, a data processing method for different data recipients is provided, the data processing method comprising: obtaining an identity of the data recipient, and determining a target preset encryption function based on the identity; encrypting the target source data according to the target preset encryption function, and converting the obtained initial ciphertext into a target ciphertext of a preset string length; constructing a target mapping relationship between the target ciphertext and the target source data to obtain the target ciphertext or the target source data according to the target mapping relationship.

[0006] In an optional manner, the data processing method further includes: detecting whether an error message sent by the data recipient is received; if it is detected that the error message is received, determining source data corresponding to the feedback ciphertext based on the feedback ciphertext carried in the error message.

[0007] In an optional manner, determining the source data corresponding to the feedback ciphertext based on the feedback ciphertext carried in the error message further includes: matching the feedback ciphertext carried in the error message with the ciphertext in each mapping relationship to obtain a successfully matched mapping relationship; and using the source data in the successfully matched mapping relationship as the source data corresponding to the feedback ciphertext.

[0008] In an optional manner, the matching operation of the feedback ciphertext carried in the error message with the ciphertext in each mapping relationship to obtain a successfully matched mapping relationship further includes: matching the feedback ciphertext carried in the error message with the cache ciphertext in the cache mapping relationship, and detecting whether a successfully matched cache ciphertext is obtained; if not, matching the feedback ciphertext with the ciphertext in the mapping relationship stored in the database to obtain a successfully matched mapping relationship.

[0009] In an optional manner, the data processing method also includes: detecting whether there is a cache mapping relationship in the cache space whose storage duration is greater than a preset storage duration; if so, deleting the cache mapping relationship whose storage duration is greater than the preset storage duration to update the cache space.

[0010] In an optional manner, determining the target preset encryption function based on the identity identifier further includes: matching the identity identifier with multiple preset identity identifiers to obtain a successfully matched preset identity identifier; and using the preset encryption function corresponding to the successfully matched preset identity identifier as the target preset encryption function.

[0011] In an optional manner, converting the obtained initial ciphertext into a target ciphertext of a preset character string length further includes: converting the obtained initial ciphertext into a target character string of a preset type, and converting the target character string into a target ciphertext of a preset character string length.

[0012] According to another aspect of an embodiment of the present application, a data processing device for different data recipients is provided, and the data processing device includes: an acquisition module, used to obtain the identity of the data recipient, and determine a target preset encryption function based on the identity; an encryption module, used to encrypt the target source data according to the target preset encryption function, and convert the obtained initial ciphertext into a target ciphertext of a preset string length; a construction module, used to construct a target mapping relationship between the target ciphertext and the target source data, so as to obtain the target ciphertext or the target source data according to the target mapping relationship.

[0013] According to one aspect of an embodiment of the present application, an electronic device is provided, including: a controller; and a memory for storing one or more programs, which, when the one or more programs are executed by the controller, perform the above-mentioned data processing method.

[0014] According to one aspect of an embodiment of the present application, a computer-readable storage medium is further provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the above-mentioned data processing method.

[0015] According to one aspect of the embodiments of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs the above-mentioned data processing method.

[0016] The embodiment of the present application determines the corresponding preset encryption function through the identity of the data recipient to perform adaptive encryption operations on the target source data to obtain the target ciphertext of the preset string length; wherein the length of the encrypted ciphertext is unified to the preset string length to facilitate the unified management of the encrypted ciphertext. At the same time, a target mapping relationship between the target ciphertext and the target source data is constructed to obtain the target ciphertext or target source data according to the target mapping relationship, facilitating the two-way traceability between the target ciphertext and the target source data.

[0017] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 It is a flowchart of a data processing method for different data recipients shown in an exemplary embodiment of the present application.

[0020] Figure 2 is based on Figure 1 The exemplary embodiment shown is a flow chart of another data processing method for different data recipients.

[0021] Figure 3 It is a structural schematic diagram of a data processing device for different data recipients shown in an exemplary embodiment of the present application.

[0022] Figure 4 It is a structural diagram of a computer system of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0023] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0024] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0025] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0026] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0027] The existing data encryption method cannot be adaptively adjusted for different suppliers. At the same time, the encrypted ciphertext has different formats, which is not convenient for ciphertext management. In addition, the tracing process of the encrypted ciphertext requires tedious reverse decryption calculations to accurately trace the source data.

[0028] In order to select adaptive encryption functions for different suppliers (i.e., data recipients) to perform personalized encryption processing on source data, one aspect of the present application provides a data processing method for different data recipients. Figure 1 , Figure 1 This is a flowchart of a data processing method for different data recipients shown in an exemplary embodiment of the present application. The data processing method at least includes S110 to S130, which are described in detail as follows:

[0029] S110: Obtain the identity of the data recipient, and determine a target preset encryption function according to the identity.

[0030] In this embodiment, different service providers are used as different data recipients, which can request corresponding data from the execution subject of this embodiment, or the execution subject of this embodiment actively sends the corresponding data to different data recipients.

[0031] Different data recipients have corresponding identity identifiers, and each identity identifier has a corresponding preset encryption function. The preset encryption functions corresponding to different identity identifiers can be the same or different, that is, the same encryption function can be preset for different data recipients, or different encryption functions can be preset. The preset can be made according to the actual scenario, and this embodiment does not limit it.

[0032] Exemplarily, the relationship between the identity identifier and the preset encryption function is represented in the form of a Key-Value pair, and there are preset "A identity identifier-first preset encryption function", "B identity identifier-second preset encryption function" and "C identity identifier-third preset encryption function". If the identity identifier is B identity identifier, it is determined that the target preset encryption function is the second preset encryption function.

[0033] S120: Encrypt the target source data according to a target preset encryption function, and convert the obtained initial ciphertext into a target ciphertext of a preset character string length.

[0034] Different data receivers have different requirements for parameters, and need to select an adaptive preset encryption function to encrypt the target source data. The format of the encrypted ciphertext obtained is not uniform. Therefore, this embodiment performs subsequent data processing on the encrypted ciphertext to unify it into a ciphertext of a preset string length.

[0035] S130: constructing a target mapping relationship between the target ciphertext and the target source data to obtain the target ciphertext or the target source data according to the target mapping relationship.

[0036] Among them, the target mapping relationship can quickly determine the target ciphertext according to the target source data, and can quickly trace the target source data according to the target ciphertext. The target mapping relationship is shown in Table 1, which is a target mapping relationship table.

[0037]

[0038]

[0039] Table 1: Target mapping relationship table

[0040] Different preset encryption algorithms corresponding to different data recipients will increase the complexity of the data processing process. The existing ciphertext tracing method generally traces the source data through the reverse decryption function, and the process is also relatively complicated. This embodiment only needs to quickly perform bidirectional tracing between the target ciphertext and the target source data through the corresponding mapping relationship.

[0041] The preset encryption algorithms in this embodiment include but are not limited to symmetric encryption algorithms, asymmetric encryption algorithms and hash encryption algorithms. Different types of encryption algorithms are suitable for different scenarios. Among them, symmetric encryption algorithms are suitable for scenarios that require fast encryption and decryption of large amounts of data, and the sender and receiver share the same key. Asymmetric encryption is suitable for secure communication scenarios, where the sender uses a public key to encrypt data and the receiver uses a private key to decrypt data; it is also used for digital signatures to ensure data integrity and identity authentication. Hash functions are suitable for scenarios that verify data integrity, password storage, and data lookup; they convert data into a hash value of fixed length and are irreversible, and are commonly used in scenarios such as password hashing, digital signatures, and data integrity verification.

[0042] Examples of symmetric encryption algorithms are as follows:

[0043] AES (Advanced Encryption Standard): A widely used symmetric encryption algorithm that supports different key lengths;

[0044] DES (Data Encryption Standard): An early symmetric encryption algorithm with a shorter key length;

[0045] 3DES (Triple Data Encryption Standard): DES is triple encrypted to enhance security.

[0046] Examples of asymmetric encryption algorithms are as follows:

[0047] RSA (Rivest-Shamir-Adleman): Based on the number theory problem of large number decomposition, it is widely used in encryption and digital signature;

[0048] ECC (Elliptic Curve Cryptography): Based on the elliptic curve discrete logarithm problem, it provides a shorter key length with the same security.

[0049] The following are examples of hash encryption algorithms:

[0050] MD5 (Message Digest Algorithm 5): Generates a 128-bit (16-byte) hash value;

[0051] SHA-1 (Secure Hash Algorithm 1): Generates a 160-bit (20-byte) hash value;

[0052] SHA-256 (Secure Hash Algorithm 256-bit): Generates a 256-bit (32-byte) hash value and is one of the most widely used hash algorithms.

[0053] The embodiment of the present application determines the corresponding preset encryption function through the identity of the data recipient to perform adaptive encryption operations on the target source data to obtain the target ciphertext of the preset string length; wherein the length of the encrypted ciphertext is unified to the preset string length to facilitate the unified management of the encrypted ciphertext. At the same time, a target mapping relationship between the target ciphertext and the target source data is constructed to obtain the target ciphertext or target source data according to the target mapping relationship, facilitating the two-way traceability between the target ciphertext and the target source data.

[0054] In another exemplary embodiment of the present application, how to trace the source data according to the relevant ciphertext is described in detail. Figure 2 , Figure 2 is based on Figure 1 The exemplary embodiment shown is a flow chart of another data processing method for different data recipients. The data processing method is as follows Figure 1 Based on the S110 to S130 shown, S210 to S220 are also included, which are described in detail as follows:

[0055] S210: Detect whether error information sent by the data receiver is received.

[0056] When the execution subject of this embodiment sends the encrypted ciphertext to the data receiver, if there are problems such as data transmission, the relevant problems need to be investigated. For example, after receiving the encrypted ciphertext, the data receiver feeds back an error message to the execution subject of this embodiment so that the execution subject of this embodiment starts to investigate the cause.

[0057] S220: If error information is detected and received, source data corresponding to the feedback ciphertext is determined according to the feedback ciphertext carried in the error information.

[0058] The feedback ciphertext is the encrypted ciphertext sent by the execution subject of this embodiment to the data receiving party. After receiving the encrypted ciphertext, the data receiving party generates an error message. The data receiving party feeds back the encrypted ciphertext as the feedback ciphertext and the error message to the execution subject of this embodiment at the same time. Because the execution subject of this embodiment stores the corresponding mapping relationship, the source data can be quickly traced back according to the feedback ciphertext.

[0059] This embodiment further illustrates that a third party such as a data receiver can feed back error information to the execution subject of this embodiment, so that the execution subject can quickly determine the corresponding source data based on the feedback ciphertext carried in the error information, so as to achieve the purpose of rapid tracing.

[0060] The encrypted ciphertext obtained by some encryption algorithms is difficult to reversely decrypt, especially when the encryption algorithm is irreversible, and the source data cannot be decrypted from the encrypted ciphertext. To this end, in another exemplary embodiment of the present application, how to determine the source data corresponding to the feedback ciphertext according to the feedback ciphertext carried in the error message is described in detail, that is, the above S220 further includes S221 to S222, which are described in detail as follows:

[0061] S221: Match the feedback ciphertext carried in the error message with the ciphertext in each mapping relationship to obtain a successfully matched mapping relationship.

[0062] Exemplarily, multiple mapping relationships are traversed, and the ciphertext in the traversed mapping relationship is matched with the feedback ciphertext. If the match is successful, the traversal is stopped to obtain the mapping relationship with a successful match.

[0063] S222: Use the source data in the successfully matched mapping relationship as the source data corresponding to the feedback ciphertext.

[0064] Exemplarily, the first, second and third mapping relationships are included. If the mapping relationship that is successfully matched is the second mapping relationship, the source data corresponding to the second mapping relationship is used as the source data corresponding to the feedback ciphertext.

[0065] This embodiment provides a method of tracing the source data based on the feedback ciphertext, by matching the feedback ciphertext with the ciphertext in the mapping relationship, and using the source data in the successfully matched mapping relationship as the source data corresponding to the feedback ciphertext. In the process of troubleshooting, a fast tracing method is provided to facilitate troubleshooting and analysis.

[0066] In another exemplary embodiment of the present application, how to match the feedback ciphertext carried in the error message with the ciphertext in each mapping relationship to obtain a successfully matched mapping relationship is described in detail, that is, the above S221 further includes S2211 to S2212, which are described in detail as follows:

[0067] S2211: Match the feedback ciphertext carried in the error message with the cache ciphertext in the cache mapping relationship, and detect whether a successfully matched cache ciphertext is obtained.

[0068] First, a matching operation is performed on the cached ciphertext, which enables a quick match between the feedback ciphertext and the mapping relationship of the recent cache, thereby improving the traceability efficiency.

[0069] S2212: If not, matching the feedback ciphertext with the ciphertext in the mapping relationship stored in the database to obtain a successfully matched mapping relationship.

[0070] The database stores all mapping relationships, including but not limited to cached mapping relationships, that is, the same mapping relationship can be stored in the database and cache space at the same time.

[0071] If the cached mapping relationship is not matched successfully, the feedback ciphertext needs to be matched with the ciphertext in the mapping relationship stored in the database.

[0072] This embodiment further illustrates the distribution matching process of the feedback ciphertext, first matching the feedback ciphertext with the cached ciphertext in the cache mapping relationship, which enables the feedback ciphertext to be quickly matched with the mapping relationship of the recent cache, thereby improving the traceability efficiency. If the match is not successful, the feedback ciphertext is matched with the ciphertext in the mapping relationship stored in the database to ensure that the corresponding matching operation is completed for all mapping relationships.

[0073] In another exemplary embodiment of the present application, how to update the cache space is described in detail, that is, the data processing method in any of the above exemplary embodiments also includes S140 to S150, which are described in detail as follows:

[0074] S140: Detect whether there is a cache mapping relationship in the cache space whose storage duration is greater than a preset storage duration.

[0075] The preset storage duration is the maximum storage duration of the preset cache mapping relationship in the cache space. If the storage duration of the cache mapping relationship is longer than the preset duration, it will be deleted to release the cache space.

[0076] S150: If it exists, the cache mapping relationship whose storage duration is longer than the preset storage duration is deleted to update the cache space.

[0077] Since the cache space is limited, this embodiment cannot continuously cache all mapping relationships into the cache space.

[0078] For example, seven days is the preset duration, that is, the maximum storage duration of the cache mapping relationship in the cache space is seven days, and those that exceed seven days will be deleted to ensure the capacity of the cache space. In addition, if the remaining capacity of the cache space is insufficient due to the storage of new cache mapping relationships, the cache mapping relationship with the longest storage duration will be deleted first to ensure that the capacity of the cache space is sufficient.

[0079] In some embodiments, if a change is detected in the preset encryption function corresponding to the stored mapping relationship, the mapping relationship will be deleted immediately (the corresponding data in the cache space and the database will be deleted at the same time) to clear the storage space in time.

[0080] In another exemplary embodiment of the present application, how to determine the target preset encryption function according to the identity identifier is described in detail, that is, S110 in the data processing method shown in any of the above exemplary embodiments further includes S111 to S112, which are described in detail as follows:

[0081] S111: performing a matching operation on the identity identifier and a plurality of preset identity identifiers to obtain a preset identity identifier that matches successfully.

[0082] S112: Using the preset encryption function corresponding to the successfully matched preset identity as the target preset encryption function.

[0083] This embodiment is exemplarily described as follows: the identity identifier is matched with the preset identity identifier in Table 2. The preset encryption function corresponding to the successfully matched preset identity identifier is used as the target preset encryption function. For example, the identity identifier is B identity identifier, and according to Table 2, it can be determined that the corresponding preset encryption function is b encryption function, that is, b encryption function is used as the target preset encryption function.

[0084] Preset Identity Preset encryption function AIdentity aEncryption function B. Identity bEncryption function …… ……

[0085] Table 2: Correspondence between preset identity identifiers and preset encryption functions

[0086] In another exemplary embodiment of the present application, how to convert the obtained initial ciphertext into a target ciphertext of a preset string length is described in detail, that is, S120 in the data processing method shown in any of the above exemplary embodiments further includes S121, which is described in detail as follows:

[0087] S121: Convert the obtained initial ciphertext into a target character string of a preset type, and convert the target character string into a target ciphertext of a preset character string length.

[0088] Exemplarily, take the Java code implementation process as an example: use the javax.crypto.Cipher tool class, call the doFinal method, perform encryption operations to obtain a byte array, and finally use the Base64 encodeAsString method to convert it into a base64 string (that is, the initial ciphertext in this embodiment); call the String.getBytes method to convert the encrypted initial ciphertext string into a byte array, and then call the printHexBinary() method of javax.xml.bind.DatatypeConverter to convert the byte array into a hexadecimal string, and hash the hexadecimal string to generate a target ciphertext with a preset string length.

[0089] This embodiment performs subsequent data processing on the initial ciphertext to unify it into a target ciphertext of a preset character string length, unifies the ciphertext length, facilitates ciphertext management, and improves data maintainability and scalability.

[0090] Another aspect of the present application also provides a data processing device for different data recipients, such as Figure 3 As shown, Figure 3 300 is a schematic diagram of a data processing device for different data receivers according to an exemplary embodiment of the present application. The data processing device 300 includes:

[0091] The acquisition module 310 is used to acquire the identity of the data recipient and determine the target preset encryption function according to the identity.

[0092] The encryption module 330 is used to encrypt the target source data according to the target preset encryption function, and convert the obtained initial ciphertext into the target ciphertext of the preset character string length.

[0093] The construction module 350 is used to construct a target mapping relationship between the target ciphertext and the target source data, so as to obtain the target ciphertext or the target source data according to the target mapping relationship.

[0094] In an optional manner, the data processing device 300 further includes:

[0095] The detection module is used to detect whether the error message sent by the data receiver is received.

[0096] The determination module is used to determine the source data corresponding to the feedback ciphertext according to the feedback ciphertext carried in the error message if the error message is detected and received.

[0097] In an optional manner, the determination module further includes:

[0098] The matching unit is used to match the feedback ciphertext carried in the error message with the ciphertext in each mapping relationship to obtain a successfully matched mapping relationship.

[0099] The successful matching unit is used to use the source data in the successfully matched mapping relationship as the source data corresponding to the feedback ciphertext.

[0100] In an optional manner, the matching unit further includes:

[0101] The first matching section is used to match the feedback ciphertext carried in the error message with the cache ciphertext in the cache mapping relationship, and detect whether a successfully matched cache ciphertext is obtained.

[0102] The second matching module is used to match the feedback ciphertext with the ciphertext in the mapping relationship stored in the database if the answer is no, so as to obtain a successfully matched mapping relationship.

[0103] In an optional manner, the data processing device 300 further includes:

[0104] The storage duration detection module is used to detect whether there is a cache mapping relationship in the cache space whose storage duration is greater than a preset storage duration.

[0105] The deletion module is used to delete the cache mapping relationship whose storage duration is greater than the preset storage duration if it exists, so as to update the cache space.

[0106] In an optional manner, the acquisition module 310 further includes:

[0107] The identity matching unit is used to perform a matching operation on the identity with a plurality of preset identity identifiers to obtain a preset identity identifier that matches successfully.

[0108] The target preset encryption function determination unit is used to use the preset encryption function corresponding to the successfully matched preset identity as the target preset encryption function.

[0109] In an optional manner, the encryption module 330 further includes:

[0110] The string length unification unit is used to convert the obtained initial ciphertext into a target string of a preset type, and convert the target string into a target ciphertext of a preset string length.

[0111] The data processing device of the present application determines the corresponding preset encryption function through the identity of the data recipient to perform adaptive encryption operations on the target source data to obtain the target ciphertext of the preset string length; wherein the length of the encrypted ciphertext is unified to the preset string length to facilitate the unified management of the encrypted ciphertext. At the same time, a target mapping relationship between the target ciphertext and the target source data is constructed to obtain the target ciphertext or target source data according to the target mapping relationship, so as to facilitate the two-way traceability between the target ciphertext and the target source data.

[0112] It should be noted that the data processing device provided in the above embodiment and the data processing method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here.

[0113] Another aspect of the present application provides an electronic device, comprising: a controller; and a memory for storing one or more programs, which, when executed by the controller, executes the above-mentioned data processing method.

[0114] See also Figure 4 , Figure 4 1 is a schematic diagram of the structure of a computer system of an electronic device shown in an exemplary embodiment of the present application, which shows a schematic diagram of the structure of a computer system of an electronic device suitable for implementing an embodiment of the present application.

[0115] It should be noted that Figure 4 The computer system 400 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0116] like Figure 4 As shown, the computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 402 or the program loaded from the storage part 408 to the random access memory (RAM) 403, such as executing the method in the above embodiment. In the RAM 403, various programs and data required for system operation are also stored. The CPU 401, ROM 402 and RAM 403 are connected to each other through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0117] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed so that a computer program read therefrom is installed into the storage section 408 as needed.

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

[0119] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can 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), a 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 can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals 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 programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0120] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the 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 than 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 flowchart, and the combination of boxes in the block diagram or flowchart 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.

[0121] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0122] Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the data processing method as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0123] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the data processing method provided in each of the above embodiments.

[0124] According to one aspect of an embodiment of the present application, a computer system is also provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. In RAM, various programs and data required for system operation are also stored. CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0125] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.

[0126] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A data processing method for different data receivers, characterized in that: The data processing method comprises: Obtaining an identity identifier of a data recipient, and determining a target preset encryption function according to the identity identifier; Encrypt the target source data according to the target preset encryption function, and convert the obtained initial ciphertext into a target ciphertext of a preset character string length; Constructing a target mapping relationship between the target ciphertext and the target source data; If a feedback ciphertext fed back by the data receiver is received, the mapping relationship to which the ciphertext successfully matched with the feedback ciphertext belongs is determined as the target mapping relationship to determine the target ciphertext and / or the target source data.

2. The data processing method according to claim 1, characterized in that: The data processing method further includes: Detecting whether an error message sent by the data recipient is received; If the error message is detected and received, the source data corresponding to the feedback ciphertext is determined according to the feedback ciphertext carried in the error message.

3. The data processing method according to claim 2, characterized in that: The determining, according to the feedback ciphertext carried in the error message, source data corresponding to the feedback ciphertext further includes: Matching the feedback ciphertext carried in the error message with the ciphertext in each mapping relationship to obtain a successfully matched mapping relationship; The source data in the successfully matched mapping relationship is used as the source data corresponding to the feedback ciphertext.

4. The data processing method according to claim 3, characterized in that: The matching operation of the feedback ciphertext carried in the error message with the ciphertext in each mapping relationship to obtain a successfully matched mapping relationship further includes: Matching the feedback ciphertext carried in the error message with the cache ciphertext in the cache mapping relationship, and detecting whether a successfully matched cache ciphertext is obtained; If not, a matching operation is performed on the feedback ciphertext and the ciphertext in the mapping relationship stored in the database to obtain a successfully matched mapping relationship.

5. The data processing method according to claim 4, characterized in that: The data processing method further includes: Detect whether there is a cache mapping relationship in the cache space whose storage duration is longer than the preset storage duration; If it exists, the cache mapping relationship whose storage duration is longer than the preset storage duration is deleted to update the cache space.

6. The data processing method according to any one of claims 1 to 5, characterized in that: The step of determining a target preset encryption function according to the identity identifier further includes: Performing a matching operation on the identity identifier and a plurality of preset identity identifiers to obtain a preset identity identifier that matches successfully; The preset encryption function corresponding to the successfully matched preset identity identifier is used as the target preset encryption function.

7. The data processing method according to any one of claims 1 to 5, characterized in that: The step of converting the obtained initial ciphertext into a target ciphertext of a preset character string length further includes: The obtained initial ciphertext is converted into a target character string of a preset type, and the target character string is converted into a target ciphertext of a preset character string length.

8. A data processing device for different data recipients, characterized in that: The data processing device comprises: An acquisition module, used to acquire the identity of the data recipient and determine a target preset encryption function according to the identity; An encryption module, used to encrypt the target source data according to the target preset encryption function, and convert the obtained initial ciphertext into a target ciphertext of a preset character string length; A construction module is used to construct a target mapping relationship between the target ciphertext and the target source data; if a feedback ciphertext fed back by the data recipient is received, the mapping relationship to which the ciphertext that successfully matches the feedback ciphertext belongs is determined as the target mapping relationship to determine the target ciphertext and / or the target source data.

9. An electronic device, characterized in that: include: Controller; A memory for storing one or more programs, which, when executed by a controller, enables the controller to implement the data processing method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the data processing method according to any one of claims 1 to 7.