Data reading and uploading method and device

By implementing key level conversion in the data upload device, the problem of users with different user levels reading the same data is solved, the data reading process is simplified, and the data reading efficiency and security are improved.

CN113472835BActive Publication Date: 2024-09-03HISENSE GRP HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010827070.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-17
Publication Date
2024-09-03
Estimated Expiration
2040-08-17

AI Technical Summary

Technical Problem

In the existing technology, the data upload device sets corresponding data keys according to pre-divided user levels, making it difficult for users of different user levels to read the same data, and the key conversion process is complicated, affecting data reading efficiency.

Method used

By sending a data reading request to the cloud platform and receiving the encrypted ciphertext, if the preset key level is inconsistent with the encrypted ciphertext level, key conversion is performed to generate a second data key of the corresponding level for decryption, simplifying data reading. Process to ensure that users with different user levels can read the same data.

Benefits of technology

It enables users with different user levels to simplify the reading process, facilitates multiple users to read the same data, and improves data reading efficiency and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113472835B
    Figure CN113472835B
Patent Text Reader

Abstract

The present application relates to the field of information security technology, and provides a data reading and uploading method and device, which receives the encrypted ciphertext returned by the cloud platform according to the data corresponding to the data reading request. If the data level of the first data key is inconsistent with the data level of the encrypted ciphertext, the first data key is converted into a second data key corresponding to the data level of the encrypted ciphertext, and then the encrypted ciphertext is decrypted using the second data key to obtain the data. The data uploading device initiates a data reading request to the data reading device, and users at different user levels send the same first data key. Each user converts the first data key to obtain the corresponding second data key according to the level difference between the first data key and the encrypted ciphertext. In this way, the data reading process is simplified, and it is convenient for multiple users at different user levels to read the same data.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the explosive growth of data, more and more data upload devices widely use private clouds or public clouds to store encrypted data. At present, data upload devices set corresponding data keys according to pre-divided user levels. Multiple ciphertexts will be generated based on the same data. Corresponding keys must be assigned to users of different user levels to ensure that users can read data normally. This is not convenient for the above users to read the same data.

[0003] In view of this, an embodiment of the present application provides a new data reading and uploading method and device. Summary of the invention

[0004] The embodiments of the present application provide a data reading and uploading method and device, which facilitate users of different user levels to read the same data.

[0005] In a first aspect, an embodiment of the present application provides a data reading method, comprising:

[0006] Sending a data read request to the cloud platform, and receiving an encrypted ciphertext returned by the cloud platform according to the data corresponding to the data read request;

[0007] If the data level of the preset first data key is inconsistent with the data level of the encrypted ciphertext, converting the first data key into a second data key corresponding to the data level of the encrypted ciphertext;

[0008] The encrypted ciphertext is decrypted using the second data key to obtain the data.

[0009] Optionally, if the data level of the preset first data key is inconsistent with the data level of the encrypted ciphertext, converting the first data key into a second data key corresponding to the data level of the encrypted ciphertext includes:

[0010] Determining the number of conversions according to the level difference between the data level of the first data key and the data level of the encrypted ciphertext, and converting the first data key according to the determined number of conversions to obtain the second data key; or,

[0011] According to the correspondence between the preset level difference and the conversion method, the conversion method corresponding to the level difference between the data level of the first data key and the data level of the encrypted ciphertext is determined, and the first data key is converted using the determined conversion method to obtain the second data key.

[0012] Optionally, further including:

[0013] If the data level of the first data key is consistent with the data level of the encrypted ciphertext, the encrypted ciphertext is decrypted using the first data key to obtain the data.

[0014] Optionally, the encrypted ciphertext is sent to the cloud platform by a data uploading device;

[0015] After receiving the encrypted ciphertext returned by the cloud platform according to the data corresponding to the data read request, and before converting the first data key into a second data key corresponding to the data level of the encrypted ciphertext, the method further includes:

[0016] Receiving the encrypted first session key sent by the cloud platform;

[0017] Decrypting the encrypted first session key using a preset private key to obtain the first session key;

[0018] The encrypted ciphertext is decrypted using the first session key to obtain the encrypted ciphertext.

[0019] Optionally, the preset first data key is obtained in the following manner:

[0020] Receive the first data key encrypted by the data upload device;

[0021] The encrypted first data key is decrypted using the preset second session key to obtain the first data key.

[0022] In a second aspect, the embodiment of the present application further provides a data uploading method, including:

[0023] Determine the data level of the data;

[0024] Encrypt the data using the data key corresponding to the data level to obtain encrypted ciphertext;

[0025] Generate an index of the encrypted ciphertext, and upload the index and the encrypted ciphertext together to the cloud platform.

[0026] Optionally, the data key corresponding to the data level is generated in the following manner, including:

[0027] Determine the number of conversions according to the level difference between the data level and the lowest data level, and convert the data key corresponding to the lowest data level according to the determined number of conversions to obtain the data key corresponding to the data level; or

[0028] According to the correspondence between the preset level difference and the conversion method, the conversion method corresponding to the level difference between the data level and the lowest data level is determined, and the data key corresponding to the lowest data level is converted using the determined conversion method to obtain the data key corresponding to the data level.

[0029] In a third aspect, an embodiment of the present application further provides a data reading device, including:

[0030] A transmission unit, used to send a data reading request to the cloud platform, and receive an encrypted ciphertext returned by the cloud platform according to the data corresponding to the data reading request;

[0031] a conversion unit, configured to convert the preset first data key into a second data key corresponding to the data level of the encrypted ciphertext if the data level of the first data key is inconsistent with the data level of the encrypted ciphertext;

[0032] A decryption unit is used to decrypt the encrypted ciphertext using the second data key to obtain the data.

[0033] Optionally, the conversion unit is used to:

[0034] Determining the number of conversions according to the level difference between the data level of the first data key and the data level of the encrypted ciphertext, and converting the first data key according to the determined number of conversions to obtain the second data key; or,

[0035] According to the correspondence between the preset level difference and the conversion method, the conversion method corresponding to the level difference between the data level of the first data key and the data level of the encrypted ciphertext is determined, and the first data key is converted using the determined conversion method to obtain the second data key.

[0036] Optionally, the conversion unit is further used for:

[0037] If the data level of the first data key is consistent with the data level of the encrypted ciphertext, the encrypted ciphertext is decrypted using the first data key to obtain the data.

[0038] Optionally, the encrypted ciphertext is sent to the cloud platform by a data uploading device;

[0039] The transmission unit is further configured to:

[0040] Receiving the encrypted first session key sent by the cloud platform;

[0041] Decrypting the encrypted first session key using a preset private key to obtain the first session key;

[0042] The encrypted ciphertext is decrypted using the first session key to obtain the encrypted ciphertext.

[0043] Optionally, the preset first data key is obtained in the following manner:

[0044] Receive the first data key encrypted by the data upload device;

[0045] The encrypted first data key is decrypted using the preset second session key to obtain the first data key.

[0046] In a fourth aspect, the embodiment of the present application further provides a data uploading device, including:

[0047] A determination unit, used for determining a data level of data;

[0048] The encryption unit is used to encrypt the data using the data key corresponding to the data level to obtain the encrypted ciphertext;

[0049] The sending unit is used to generate an index of the encrypted ciphertext and upload the index and the encrypted ciphertext to the cloud platform.

[0050] Optionally, the data key corresponding to the data level is generated in the following manner, including:

[0051] Determine the number of conversions according to the level difference between the data level and the lowest data level, and convert the data key corresponding to the lowest data level according to the determined number of conversions to obtain the data key corresponding to the data level; or

[0052] According to the correspondence between the preset level difference and the conversion method, the conversion method corresponding to the level difference between the data level and the lowest data level is determined, and the data key corresponding to the lowest data level is converted using the determined conversion method to obtain the data key corresponding to the data level.

[0053] In a fifth aspect, an embodiment of the present application further provides a data reading device, comprising a processor and a memory, wherein the memory stores program code, and when the program code is executed by the processor, the processor executes the steps of any one of the above-mentioned data reading methods.

[0054] In a sixth aspect, an embodiment of the present application further provides a data uploading device, which includes a processor and a memory, wherein the memory stores a program code, and when the program code is executed by the processor, the processor executes the steps of any one of the above-mentioned data uploading methods.

[0055] In a seventh aspect, an embodiment of the present application further provides a computer-readable storage medium, which includes a program code. When the program product is run on a data reading device, the program code is used to enable the data reading device to execute the steps of any one of the above-mentioned data reading methods.

[0056] In an eighth aspect, an embodiment of the present application further provides a computer-readable storage medium, which includes a program code. When the program product is run on a data uploading device, the program code is used to enable the data uploading device to execute the steps of any one of the above-mentioned data uploading methods.

[0057] The beneficial effects of this application are as follows:

[0058] The embodiment of the present application provides a data reading and uploading method and device, which sends a data reading request to a cloud platform, and receives the encrypted ciphertext returned by the cloud platform according to the data corresponding to the data reading request. If the data level of the first data key is inconsistent with the data level of the encrypted ciphertext, the first data key is converted into a second data key corresponding to the data level of the encrypted ciphertext, and then the encrypted ciphertext is decrypted using the second data key to obtain the data. The data uploading device initiates a data reading request to the data reading device, and users at different user levels send the same first data key. Each user converts the first data key to obtain the corresponding second data key according to the level difference between the first data key and the encrypted ciphertext. In this way, the data reading process is simplified, and it is convenient for multiple users at different user levels to read the same data.

[0059] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0061] Figure 1 A schematic diagram of the architecture of a data reading system provided in an embodiment of the present application;

[0062] Figure 2 A schematic diagram of a process for encrypting a piece of data provided in an embodiment of the present application;

[0063] Figure 3 A schematic diagram of the process of encrypting data keys provided in an embodiment of the present application;

[0064] Figure 4A schematic diagram of a data reading process provided in an embodiment of the present application;

[0065] Figure 5 This is a schematic diagram of the structure of a data reading device in an embodiment of the present application;

[0066] Figure 6 This is a structural diagram of a data uploading device in an embodiment of the present application;

[0067] Figure 7 This is a schematic diagram of the structure of a data reading device in an embodiment of the present application;

[0068] Figure 8 This is a structural diagram of a data uploading device in an embodiment of the present application. DETAILED DESCRIPTION

[0069] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solution of the present application, rather than all of the embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the technical solution of the present application.

[0070] See also Figure 1 As shown, an embodiment of the present application provides a data reading system, which includes a data uploading device 100, a cloud platform 101 and a data reading device 102.

[0071] User A encrypts data through the data upload device 100 and establishes a user level-data level mapping table; the cloud platform 101 is used to store the encrypted data and verify the authority of the user U who initiates the data reading request through the data reading device 102 according to the above mapping table, and after the verification is successful, the encrypted data is sent to the user U. The data upload device 100 of the embodiment of the present application includes but is not limited to a server and a client, the data reading device 102 includes but is not limited to a server and a client, and the data includes but is not limited to video data, shopping data, and chat record data.

[0072] Specifically, see Figure 2 As shown, the process of user A encrypting a piece of data through the data upload device 100 is as follows:

[0073] S201: Determine the data level of data.

[0074] The data level represents the security level of the data. The embodiment of the present application stipulates that the higher the data level of the data, the higher the security level of the data.

[0075] S202: Encrypt the data using the data key corresponding to the data level to obtain encrypted ciphertext.

[0076] First, the embodiments of the present application provide the following two key generation methods.

[0077] Method 1: Determine the number of conversions according to the level difference between the data level and the lowest data level, and convert the data key corresponding to the lowest data level according to the determined number of conversions to obtain the data key corresponding to the data level.

[0078] Among them, SK in formula (1) Dj The data key representing the jth level, SK Dj+1 represents the data key of level j+1, SM3 represents the hash algorithm, and SK D1 A random number between (1, q-1), where q is a prime number. In this way, a high-level data key can be generated based on a low-level data key after one or more conversions.

[0079] SK Dj+1 =SM3_128(SK Dj ) formula (1);

[0080] Method 2: According to the correspondence between the preset level difference and the conversion method, determine the conversion method corresponding to the level difference between the data level and the lowest data level, and use the determined conversion method to convert the data key corresponding to the lowest data level to obtain the data key corresponding to the data level.

[0081] Compared with method one, method two can directly generate data keys of the corresponding level, shortening the generation time and making it more convenient and quick.

[0082] Secondly, the embodiment of the present application uses the encryption algorithm in the block cipher algorithm and the data key corresponding to the data level to encrypt the data, and obtain the encrypted ciphertext SM4_ENC_SK Dj (Dj), where Dj represents the data at the jth level, SK Dj It represents the data key of the jth level, and SM4_ENC represents the encryption algorithm in the block cipher algorithm.

[0083] S203: Generate an index I of the encrypted ciphertext, and upload the index I and the encrypted ciphertext to the cloud platform 101 together.

[0084] A corresponding index I may be generated by using a hash algorithm, a keyword extraction algorithm for text data, a machine learning extraction algorithm for image data, and other extraction algorithms to identify the encrypted ciphertext, so as to facilitate the cloud platform 101 to manage the encrypted ciphertext. In addition, the cloud platform 101 may also determine the data level of the encrypted ciphertext according to the index I, so as to facilitate the cloud platform 101 to verify the authority of the user U who initiates the data reading request through the data reading device 102.

[0085] At the same time, user A also needs to establish a user level-data level mapping table through the data upload device 100, and send the mapping table to the cloud platform 101. The user level represents the access rights of user U. In the embodiment of the present application, the higher the level of user U, the higher the access rights, that is, a high-level user U has the right to access high-level data and low-level data.

[0086] In addition, user A generates second session keys for each user level in advance, and uses the second session keys of the corresponding level to encrypt the data key, which can improve the security of data transmission. Figure 3 As shown, the specific process is as follows:

[0087] S301: Generate second session keys for each user level according to preset keys for each user level.

[0088] First, user A can use the following two methods to generate each user-level key and the corresponding user-level public key.

[0089] Method 1: Randomly generate each user-level key, and then use formula (2) to generate the user-level public key corresponding to each user-level key. Ci represents the user-level key of level i, G represents the generator, PK Ci The public key representing the user level of level i.

[0090] PK Ci =SK Ci ·G Formula (2);

[0091] Method 2: Use formula (3) to generate each user-level key, and then use formula (2) to generate the corresponding user-level public key. Ci The user-level key representing the i-th level, SK Ci+1 represents the user-level key of level i+1, M3 represents the hash algorithm, and SK C1 A random number between (1, q-1), where q is a prime number. In this way, a high-level user-level key can be generated based on a low-level user-level key after one or more conversions.

[0092] SK Ci+1=SM3_128(SK Ci ) formula (3);

[0093] Secondly, user A uses formula (3) to calculate the intermediate value Z of the session key i , the i-th level user U uses formula (4) to calculate Z i .

[0094] PK of formula (3) Ci The public key representing the user level at level i, SK A The private key of user A, SK in formula (4) Ci The user level key representing the i-th level, PK A Represents the public key of user A.

[0095] Z i =SK A *PK Ci Formula (3);

[0096] Z i =SK Ci *PK A Formula (4);

[0097] Finally, the second session key SK of level i is generated using formula (5): A-Ci . [Z i ] X The horizontal axis represents the vector, and SM3 represents the hash algorithm.

[0098] SK A-Ci =SM3_128([Z i ] X ) formula (5);

[0099] S302: Encrypt the data key according to the second session key of the user level corresponding to the user U who initiates the data reading request on the data reading device 102, and send the encrypted data key to the user U.

[0100] The second session key corresponding to the user level of user A and user U who initiates the data reading request on the data reading device 102 encrypts the same data key on the data uploading device 100 and transmits the encrypted data key to user U of the corresponding user level to ensure the security of data transmission.

[0101] User A sends the same data key to user U who initiates a data reading request and is at a different user level. High-level user U can convert the low-level data key into a high-level data key, which simplifies the data reading process and makes it easier for users at different user levels to read the same data.

[0102] The data reading process of the embodiment of the present application is as follows Figure 4 shown.

[0103] S401: Send a data reading request to the cloud platform 101, and receive the encrypted ciphertext returned by the cloud platform 101 according to the data corresponding to the data reading request.

[0104] User U sends a data reading request to the cloud platform 101 through the data reading device 102. The cloud platform 101 obtains the index of the data to be read and the user level of user U carried in the data reading request, determines the data level of the data to be read and the user level of user U, and matches them with the user level-data level mapping table pre-stored locally to verify whether user U has the authority to read the data. If the match is successful, user U has the authority to read the data, and the cloud platform 101 returns the encrypted ciphertext corresponding to the index to the data reading device 102; otherwise, the data reading process ends.

[0105] Before executing step 402, user U first receives the encrypted first session key sent by the cloud platform 101 through the data reading device 102; then uses the preset private key to decrypt the encrypted first session key to obtain the first session key; finally, uses the first session key to decrypt the encrypted ciphertext to obtain the encrypted ciphertext.

[0106] The cloud platform 101 uses the public key of user U to encrypt the first session key, and user U uses his own private key to decrypt and obtain the first session key. Furthermore, the cloud platform 101 uses the first session key to perform secondary encryption on the encrypted ciphertext, thereby improving the security of data transmission.

[0107] S402: If the data level of the preset first data key is inconsistent with the data level of the encrypted ciphertext, the first data key is converted into a second data key corresponding to the data level of the encrypted ciphertext.

[0108] The user U in the embodiment of the present application can obtain the preset first data key in the following manner:

[0109] First, receiving the first data key encrypted by the data uploading device 100;

[0110] The encrypted first data key is then decrypted using the preset second session key to obtain the first data key.

[0111] For example, if user U belongs to the second level of users, the encrypted first data key is decrypted using the second session key of the second user level.

[0112] The present application embodiment provides the following two conversion methods.

[0113] Method 1: Determine the number of conversions according to the level difference between the data level of the first data key and the data level of the encrypted ciphertext, and convert the first data key according to the determined number of conversions to obtain the second data key.

[0114] For example, the data level of the first data key is level 1, and the data level of the encrypted ciphertext is level 3, which is two levels different. Formula (1) needs to be used for conversion twice to obtain the second data key and decrypt the encrypted ciphertext.

[0115] Method 2: According to the correspondence between the preset level difference and the conversion method, determine the conversion method corresponding to the level difference between the data level of the first data key and the data level of the encrypted ciphertext, and use the determined conversion method to convert the first data key to obtain the second data key.

[0116] For example, the data level of the first data key is level 1, and the data level of the encrypted ciphertext is level 3, which are two levels apart. The conversion method corresponding to the two levels difference is directly called to obtain the second data key to decrypt the encrypted ciphertext.

[0117] Furthermore, if the data level of the first data key is consistent with the data level of the encrypted ciphertext, the encrypted ciphertext is decrypted using the first data key to obtain the data.

[0118] For example, the data level of the first data key is level 1, and the data level of the encrypted ciphertext is also level 1. The first data key can be directly used to decrypt the encrypted ciphertext.

[0119] Compared with point-to-point communication, the data reading method provided in the embodiment of the present application is more suitable for broadcast communication scenarios. After user A uploads data through the data upload device 100, the data key can be transmitted to multiple users U who initiate data reading requests by group broadcast. In this way, only one broadcast is needed, and the user U with reading permission can derive the corresponding data key based on the issued data key.

[0120] S403: Use the second data key to decrypt the encrypted ciphertext to obtain data.

[0121] like Figure 5 As shown, it is a schematic diagram of the structure of a data reading device, which may include a transmission unit 501, a conversion unit 502 and a decryption unit 503, wherein:

[0122] The transmission unit 501 is used to send a data reading request to the cloud platform, and receive the encrypted ciphertext returned by the cloud platform according to the data corresponding to the data reading request;

[0123] A conversion unit 502, configured to convert the preset first data key into a second data key corresponding to the data level of the encrypted ciphertext if the data level of the first data key is inconsistent with the data level of the encrypted ciphertext;

[0124] The decryption unit 503 is used to decrypt the encrypted ciphertext using the second data key to obtain the data.

[0125] Optionally, the conversion unit 502 is used to:

[0126] Determining the number of conversions according to the level difference between the data level of the first data key and the data level of the encrypted ciphertext, and converting the first data key according to the determined number of conversions to obtain the second data key; or,

[0127] According to the correspondence between the preset level difference and the conversion method, the conversion method corresponding to the level difference between the data level of the first data key and the data level of the encrypted ciphertext is determined, and the first data key is converted using the determined conversion method to obtain the second data key.

[0128] Optionally, the conversion unit 502 is further configured to:

[0129] If the data level of the first data key is consistent with the data level of the encrypted ciphertext, the encrypted ciphertext is decrypted using the first data key to obtain the data.

[0130] Optionally, the encrypted ciphertext is sent to the cloud platform by a data uploading device;

[0131] The transmission unit 501 is further configured to:

[0132] Receiving the encrypted first session key sent by the cloud platform;

[0133] Decrypting the encrypted first session key using a preset private key to obtain the first session key;

[0134] The encrypted ciphertext is decrypted using the first session key to obtain the encrypted ciphertext.

[0135] Optionally, the preset first data key is obtained in the following manner:

[0136] Receive the first data key encrypted by the data upload device;

[0137] The encrypted first data key is decrypted using the preset second session key to obtain the first data key.

[0138] like Figure 6As shown, it is a schematic diagram of the structure of a data uploading device, which may include a determination unit 601, an encryption unit 602 and a sending unit 603, wherein:

[0139] A determination unit 601, used to determine the data level of the data;

[0140] The encryption unit 602 is used to encrypt the data using the data key corresponding to the data level to obtain the encrypted ciphertext;

[0141] The sending unit 603 is used to generate an index of the encrypted ciphertext and upload the index and the encrypted ciphertext to the cloud platform.

[0142] Optionally, the data key corresponding to the data level is generated in the following manner, including:

[0143] Determine the number of conversions according to the level difference between the data level and the lowest data level, and convert the data key corresponding to the lowest data level according to the determined number of conversions to obtain the data key corresponding to the data level; or

[0144] According to the correspondence between the preset level difference and the conversion method, the conversion method corresponding to the level difference between the data level and the lowest data level is determined, and the data key corresponding to the lowest data level is converted using the determined conversion method to obtain the data key corresponding to the data level.

[0145] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.

[0146] In some possible implementations, the present application also provides a data reading device, see Figure 7 As shown, the electronic device may include at least one processor 701 and at least one memory 702. The memory 702 stores program codes. When the program codes are executed by the processor 701, the processor 701 executes the steps of the data reading method according to various exemplary embodiments of the present application described above in this specification. For example, the processor 701 may execute the following steps: Figure 4 Follow the steps shown in .

[0147] In some possible implementations, the present application also provides a data uploading device, see Figure 8As shown, the electronic device may include at least one processor 801 and at least one memory 802. The memory 802 stores program codes. When the program codes are executed by the processor 801, the processor 801 executes the steps of the data reading method according to various exemplary embodiments of the present application described above in this specification. For example, the processor 801 may execute the following steps: Figure 4 Follow the steps shown in .

[0148] In some possible implementations, various aspects of the business control method provided by the present application may also be implemented in the form of a program product, which includes program code. When the program product is run on a data reading device or a data uploading device, the program code is used to enable the data reading device or the data uploading device to execute the steps of the data reading method or the data uploading method according to various exemplary implementations of the present application described above in this specification.

[0149] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0150] The program product for business control of the embodiment of the present application can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a computing device. However, the program product of the present application is not limited to this. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with a command execution system, device or device.

[0151] The readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein the readable program code 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. The readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with a command execution system, apparatus, or device.

[0152] The program code contained on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0153] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user equipment, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device via any type of network including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0154] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0155] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A data reading method, characterized in that: Applicable to data reading equipment, including: Sending a data read request to the cloud platform, and receiving an encrypted ciphertext returned by the cloud platform according to the data corresponding to the data read request; Receiving the encrypted first session key sent by the cloud platform, using a preset private key to decrypt the encrypted first session key to obtain a first session key, and using the first session key to decrypt the encrypted ciphertext to obtain an encrypted ciphertext; Receive the encrypted first data key sent by the data uploading device, and use the second session key corresponding to the user level of the sending request user to decrypt the encrypted first data key to obtain the first data key; wherein the second session key is generated according to the public key and private key of the user, and the user level public key and user level key of the user level; If the data level of the preset first data key is inconsistent with the data level of the encrypted ciphertext, the number of conversions is determined according to the level difference between the data level of the first data key and the data level of the encrypted ciphertext, and the first data key is converted according to the determined number of conversions to obtain a second data key; or, Determine, according to a preset correspondence relationship between the level difference and the conversion method, a conversion method corresponding to the level difference between the data level of the first data key and the data level of the encrypted ciphertext, and convert the first data key using the determined conversion method to obtain the second data key; The encrypted ciphertext is decrypted using the second data key to obtain the data.

2. The method according to claim 1, characterized in that Further including: If the data level of the first data key is consistent with the data level of the encrypted ciphertext, the encrypted ciphertext is decrypted using the first data key to obtain the data.

3. A data uploading method, characterized in that: Applicable to data upload devices, including: Determine the data level of the data; The data key corresponding to the data level is generated in the following manner: according to the level difference between the data level and the lowest data level, the number of conversions is determined, and the data key corresponding to the lowest data level is converted according to the determined number of conversions to obtain the data key corresponding to the data level; or, according to the correspondence between the preset level difference and the conversion method, the conversion method corresponding to the level difference between the data level and the lowest data level is determined, and the data key corresponding to the lowest data level is converted using the determined conversion method to obtain the data key corresponding to the data level; Encrypt the data using the data key corresponding to the data level to obtain encrypted ciphertext; Generate an index of the encrypted ciphertext, and upload the index and the encrypted ciphertext to the cloud platform together, so that the cloud platform re-encrypts the encrypted ciphertext based on the first session key to obtain the encrypted ciphertext, encrypts the first session key based on the public key of the user who initiates the data reading request, and sends the encrypted first session key to the data reading device that initiates the request; Generate a second session key of the corresponding user level according to the public key and private key of the user who sends the data reading request, and the user level public key and user level secret key of the corresponding user level; The first data key of the lowest data level is encrypted according to the second session key, and the encrypted first data key is sent to the user who requests to read the data.

4. A data reading device, characterized in that: The method comprises a processor and a memory, wherein the memory stores program codes, and when the program codes are executed by the processor, the processor executes the steps of the method as claimed in any one of claims 1 to 2.

5. A data uploading device, characterized in that: The method comprises a processor and a memory, wherein the memory stores program codes, and when the program codes are executed by the processor, the processor executes the steps of the method as claimed in claim 3.