A data encryption authentication method and system based on data information protection
Through hierarchical processing and asymmetric key encryption, combined with irreversible damage and delayed transmission of data transit stations, the problem of instability in data transmission and insufficient protection after cracking of encryption methods in the existing technology is solved, and more efficient data protection and transmission are achieved stability.
Patent Information
- Application Number
- CN202410415832.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-08
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-04-08
AI Technical Summary
The existing data encryption authentication method based on data information protection lacks further protection after cracking the encryption method, resulting in unstable data transmission and downstream clients are prone to stuttering when receiving batch data.
Data information is processed in a hierarchical manner and encrypted with an asymmetric key. It is divided into virtual files and real files. The real files are read in a specific order, and the real files are irreversible after reading failure, while the data is transferred. Delayed transmission of data packets within the site to ensure the security and stability of data transmission.
It effectively enhances the protection performance of data information transmission, reduces the lag in data reception of downstream clients, and improves the stability of data information transmission.
Smart Images

Figure CN118316676B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data encryption, and in particular to a data encryption authentication method and system based on data information protection. Background Art
[0002] Data information protection refers to taking corresponding technical and management measures during the process of data collection, storage, transmission and use to protect data from being illegally acquired, tampered with or leaked, and to maintain the integrity, availability and confidentiality of data.
[0003] Referring to the Chinese patent A data encryption authentication method and system based on data information protection (Announcement No.: CN117744127A, Announcement Date: 2024.03.22), the patent introduces data processing and text semantic understanding algorithms in the back end to perform semantic analysis of the text data to be protected, so as to determine whether the text data to be protected is sensitive data, and thus desensitize the sensitive text data, which can improve the accuracy of text data subject identification and improve the efficiency and quality of encryption.
[0004] However, the existing data encryption authentication based on data information protection still has other problems. For example, data information only relies on data encryption for data information protection. In this way, after the encryption method of the data information is cracked, the data information can be directly read. There is a lack of further protection for data information reading, and when the downstream client receives data, it often causes jams due to batch data sending, and the stability of data information transmission is general. For this reason, the present invention proposes a data encryption authentication method and system based on data information protection to solve the above-mentioned problems. Summary of the invention
[0005] 1. Technical issues to be solved
[0006] In view of the deficiencies in the prior art, the present invention provides a data encryption authentication method and system based on data information protection, which solves the problems mentioned in the above background technology.
[0007] (II) Technical solution
[0008] To achieve the above objectives, the present invention is implemented through the following technical solutions: a data encryption authentication method based on data information protection, specifically comprising the following steps:
[0009] Step 1: The first user enters a correct user name and password through the first client to verify the login, and then performs hierarchical processing on the basic data, wherein at least one level of the hierarchical processed basic data is encrypted with an asymmetric key, wherein the basic data is data information transmitted over the network;
[0010] Step 2: Data information is carried in a folder and divided into virtual files and real files. The real files are read in a specific order, and the real files are irreversibly destroyed after the reading fails. The virtual files are displayed and the real files are hidden.
[0011] Step 3: The batch folders are sent in the form of data packets, a data transfer station is established between the first client and the second client, and some data packets are delayed in the data transfer station so that the second client can receive the data packets in order;
[0012] Step 4: The second user obtains the basic data through the second client, and reads the basic data directly or by using a private key.
[0013] As an improved technical solution, at least one level of the basic data after hierarchical processing in step 1 is encrypted with an asymmetric key:
[0014] S1: arbitrarily select two large prime numbers p and q, where p≠q, and calculate N=pq;
[0015] S2: Then according to the Euler function, the number of integers not greater than N and coprime with N is (p-1)(q-1), calculate d=(p-1)(q-1), select an integer e that is coprime with (p-1)(q-1), and e is less than (p-1)(q-1), and after destroying p and q, (N, e) is the public key, and (N, d) is the private key.
[0016] As an improved technical solution, the basic data is processed in a hierarchical manner according to the specific method of setting the levels: first, a data storage folder is established and marked as HA, HB and HC, wherein HA is non-encrypted data, HB is selectively encrypted data and HC is encrypted data; after the basic data is obtained, the basic data is entered into any one of HA, HB and HC for processing, wherein the folder for encrypting the basic data with an asymmetric key is HC.
[0017] As an improved technical solution, the specific method of reading the real file in a specific order in step 2 and destroying the real file in an irreversible manner after the reading fails is:
[0018] M1: First, mark the real file as AEJ, and then mark the virtual file as BEJ. File AEJ is hidden. After obtaining the file, follow the order: Step 1, display file AEJ in the file, Step 2, open file BEJ, Step 3, open file AEJ. At this time, file BEJ is deleted and file AEJ is read;
[0019] M2: Then there are several hidden bytes in the file AEJ and marked as ZJ. If the data information is not read in the order in M1, the hidden bytes ZJ are randomly inserted into the file AEJ, making the file AEJ garbled and unreadable.
[0020] As an improved technical solution, the file name and memory size of the virtual file BEJ in M1 are the same as those of the file AEJ, and the content of the virtual file BEJ is a partial overlapping code of the file AEJ.
[0021] As an improved technical solution, in step 3, the specific method of delaying the transmission of some data packets in the data transfer station so that the second client receives the data packets in order is:
[0022] P1: First, mark the data transfer station as ZH, then mark the data packet as Dj, where j is the sequence number of the data packet. When the data packet Dj enters ZH, set the time threshold T and the transmission threshold YU, where YU includes several data packets Dj;
[0023] P2: Then, with the transmission threshold YU as a unit and the time threshold T as an interval, several data packets Dj in the data information are transmitted in sequence until the second client receives all the data packets Dj in order and the data transmission is terminated.
[0024] As an improved technical solution, at least one data transfer station ZH established in P1 is provided, and the transmission threshold YU is set according to the second client.
[0025] The present invention also discloses a data encryption authentication system based on data information protection, comprising:
[0026] Data encryption unit: a first user enters a correct user name and password through a first client to verify login, and then performs hierarchical processing on the basic data, wherein at least one level of the hierarchically processed basic data is encrypted with an asymmetric key;
[0027] Virtual file unit: Data information is carried in folders, which are divided into virtual files and real files. Real files are read in a specific order, and real files are irreversibly destroyed if the reading fails.
[0028] Data delay unit: batch folders are sent in the form of data packets, a data transfer station is established between the first client and the second client, and part of the data packets are delayed in the data transfer station so that the second client can receive the data packets in order;
[0029] Data decryption unit: The second user obtains the basic data through the second client and reads the basic data directly or by using a private key.
[0030] The present invention also discloses an electronic device, comprising:
[0031] Processor; and
[0032] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method described.
[0033] The present invention also discloses a storage medium on which executable codes are stored. When the executable codes are executed by a processor of an electronic device, the processor is enabled to execute the method.
[0034] (III) Beneficial effects
[0035] The present invention provides a data encryption authentication method and system based on data information protection. Compared with the prior art, it has the following beneficial effects:
[0036] The data encryption authentication method and system based on data information protection can manage data information in a hierarchical manner and ensure the security of data transmission by hierarchical processing of data information and encrypting it with an asymmetric key. It can also read real files in a specific order and extend encryption based on the RSA algorithm. If the reading fails, the real file will be irreversibly destroyed, which effectively enhances the protection performance of data information transmission. In conjunction with the establishment of a data transfer station, some data packets will be delayed in transmission in the data transfer station to reduce the jamming caused by downstream client data reception, and the stability of data information transmission is stronger. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A block diagram of a data encryption authentication system based on data information protection shown in an embodiment of the present application;
[0038] Figure 2 A schematic diagram of the structure of an electronic device shown in an embodiment of the present application;
[0039] Figure 3 This is a flow chart of a data encryption authentication method based on data information protection shown in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] See also Figure 1-Figure 3, the embodiment of the present invention provides four technical solutions:
[0042] Embodiment 1
[0043] A data encryption authentication method based on data information protection specifically comprises the following steps:
[0044] Step 1: The first user enters the correct user name and password through the first client to verify the login, and then the basic data is hierarchically processed, and at least one level of the basic data after the hierarchical processing is encrypted with an asymmetric key, wherein the basic data is data information transmitted based on the network; in step 1, at least one level of the basic data after the hierarchical processing is encrypted with an asymmetric key:
[0045] S1: arbitrarily select two large prime numbers p and q, where p≠q, and calculate N=pq;
[0046] S2: Then according to the Euler function, the number of integers not greater than N and coprime with N is (p-1)(q-1), calculate d=(p-1)(q-1), select an integer e that is coprime with (p-1)(q-1), and e is less than (p-1)(q-1), and after destroying p and q, (N, e) is the public key, and (N, d) is the private key.
[0047] The basic data is processed in a hierarchical manner according to the level setting: first, a data storage folder is established and marked as HA, HB and HC, where HA is non-encrypted data, HB is selectively encrypted data and HC is encrypted data. After the basic data is obtained, the basic data is processed in any one of HA, HB and HC, where the folder for encrypting the basic data with an asymmetric key is HC.
[0048] Step 2: Data information is carried in a folder, and the data information is divided into virtual files and real files. The real files are read in a specific order, and the real files are irreversibly destroyed after the reading fails. The virtual files are displayed and the real files are hidden. The specific method of reading the real files in a specific order and destroying the real files in an irreversible way after the reading fails in step 2 is:
[0049] M1: First, mark the real file as AEJ, and then mark the virtual file as BEJ. File AEJ is hidden. After obtaining the file, the following sequence is followed: Step 1, display file AEJ in the file; Step 2, open file BEJ; Step 3, open file AEJ. At this time, file BEJ is deleted and file AEJ is read. The file name and memory size of virtual file BEJ in M1 are the same as those of file AEJ. The content of virtual file BEJ is part of the overlapping code of file AEJ.
[0050] M2: Then there are several hidden bytes in the file AEJ, marked as ZJ. If the data information is not read in the order in M1, the hidden bytes ZJ are randomly inserted into the file AEJ, making the file AEJ garbled and unreadable.
[0051] Step 3: The batch folders are sent in the form of data packets, a data transfer station is established between the first client and the second client, and some data packets are delayed in transmission in the data transfer station so that the second client can receive the data packets in order. The specific method of delaying the transmission of some data packets in the data transfer station so that the second client can receive the data packets in order in step 3 is:
[0052] P1: First, mark the data transfer station as ZH, then mark the data packet as Dj, where j is the sequence number of the data packet. When the data packet Dj enters ZH, set the time threshold T and the transmission threshold YU, where YU includes several data packets Dj; at least one data transfer station ZH is established in P1, and the transmission threshold YU is set according to the second client. The more data the second client receives, the more data transfer stations ZH need to be set;
[0053] P2: Then, taking the transmission threshold YU as a unit and the time threshold T as an interval, several data packets Dj in the data information are transmitted in sequence until the second client receives all the data packets Dj in order, and the data transmission is terminated; taking the transmission threshold YU including 100 data packets D1-D100 as an example, the time threshold T is 0.01s, at this time, taking 100 data packets and an interval of 0.01s as an example, the data packets of the entire file can be transmitted in sequence.
[0054] Step 4: The second user obtains the basic data through the second client, and reads the basic data directly or by using a private key.
[0055] Embodiment 2
[0056] A data encryption authentication system based on data information protection, comprising:
[0057] Data encryption unit: a first user enters a correct user name and password through a first client to verify login, and then performs hierarchical processing on the basic data, wherein at least one level of the hierarchically processed basic data is encrypted with an asymmetric key;
[0058] Virtual file unit: Data information is carried in folders, which are divided into virtual files and real files. Real files are read in a specific order, and real files are irreversibly destroyed if the reading fails.
[0059] Data delay unit: batch folders are sent in the form of data packets, a data transfer station is established between the first client and the second client, and part of the data packets are delayed in the data transfer station so that the second client can receive the data packets in order;
[0060] Data decryption unit: The second user obtains the basic data through the second client and reads the basic data directly or by using a private key.
[0061] Embodiment 3
[0062] A data encryption authentication method based on data information protection specifically comprises the following steps:
[0063] Step 1: The first user enters a correct user name and password through the first client to verify the login, and then performs hierarchical processing on the basic data, wherein at least one level of the hierarchical processed basic data is encrypted with an asymmetric key, wherein the basic data is data information transmitted over the network;
[0064] Step 2: Data information is carried in a folder and divided into virtual files and real files. The real files are read in a specific order, and the real files are irreversibly destroyed after the reading fails. The virtual files are displayed and the real files are hidden.
[0065] Step 3: The batch folders are sent in the form of data packets, a data transfer station is established between the first client and the second client, and some data packets are delayed in the data transfer station so that the second client can receive the data packets in order;
[0066] Step 4: The second user obtains the basic data through the second client, and reads the basic data directly or by using a private key.
[0067] Meanwhile, the contents not described in detail in this specification belong to the prior art known to those skilled in the art.
[0068] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0069] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
[0070] Embodiment 4
[0071] Corresponding to the aforementioned application function implementation method embodiment, the present application also provides an electronic device and corresponding embodiments.
[0072] See also Figure 2 , the electronic device 1000 includes a memory 1010 and a processor 1020 .
[0073] The processor 1020 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0074] The memory 1010 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 1020 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 1010 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 1010 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0075] The memory 1010 stores executable codes, and when the executable codes are processed by the processor 1020 , the processor 1020 can execute part or all of the methods described above.
[0076] The scheme of the present application has been described in detail above with reference to the accompanying drawings. In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, refer to the relevant description of other embodiments. Those skilled in the art should also know that the actions and modules involved in the description are not necessarily required for the present application. In addition, it can be understood that the steps in the method of the embodiment of the present application can be adjusted in order, merged and deleted according to actual needs, and the modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0077] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.
[0078] Alternatively, the present application can also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or electronic device, server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.
[0079] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the application herein may be implemented as electronic hardware, computer software, or combinations of both.
[0080] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system and method according to multiple embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a part of a module, a program segment or a code, and the part of the module, the program segment or 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 square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or the flow chart, and the combination of the square boxes in the block diagram and / or the flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0081] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A data encryption authentication method based on data information protection, It is characterized in that The specific steps include: Step 1: The first user enters a correct user name and password through the first client to verify the login, and then performs hierarchical processing on the basic data, wherein at least one level of the hierarchical processed basic data is encrypted with an asymmetric key, wherein the basic data is data information transmitted over the network; Step 2: Data information is carried in a folder and divided into virtual files and real files. The real files are read in a specific order, and the real files are irreversibly destroyed after the reading fails. The virtual files are displayed and the real files are hidden. The specific method of reading the real file in a specific order in step 2 and irreversibly destroying the real file after the reading fails is: M1: First, mark the real file as AEJ, and then mark the virtual file as BEJ. File AEJ is hidden. After the file is obtained, the following sequence is followed: Step 1, display file AEJ in the file; Step 2, open file BEJ; Step 3, open file AEJ. At this time, file BEJ is deleted and file AEJ is read. The file name and memory size of the virtual file BEJ in M1 are the same as those of file AEJ. The content of the virtual file BEJ is a partially overlapping code of file AEJ. M2: Then there are several hidden bytes in the file AEJ, marked as ZJ. If the data information is not read in the order in M1, the hidden bytes ZJ are randomly inserted into the file AEJ, making the file AEJ garbled and unreadable. Step 3: The batch folders are sent in the form of data packets, a data transfer station is established between the first client and the second client, and some data packets are delayed in the data transfer station so that the second client can receive the data packets in order; Step 4: The second user obtains the basic data through the second client, and reads the basic data directly or by using a private key.
2. According to claim 1, a data encryption authentication method based on data information protection, Features: In the step 1, at least one level of the basic data after hierarchical processing is encrypted with an asymmetric key: S1: arbitrarily select two large prime numbers p and q, where p≠q, and calculate N=pq; S2: Then according to the Euler function, the number of integers not greater than N and coprime with N is (p-1)(q-1), calculate d=(p-1)(q-1), select an integer e that is coprime with (p-1)(q-1), and e is less than (p-1)(q-1), and after destroying p and q, (N, e) is the public key, and (N, d) is the private key.
3. A data encryption authentication method based on data information protection according to claim 1 or 2, Features: The basic data is processed in a hierarchical manner according to the specific method of setting the levels: first, a data storage folder is established and marked as HA, HB and HC, wherein HA is non-encrypted data, HB is selectively encrypted data and HC is encrypted data; after the basic data is obtained, the basic data is processed in any one of HA, HB and HC, wherein the folder for encrypting the basic data with an asymmetric key is HC.
4. According to claim 1, a data encryption authentication method based on data information protection, Features: In step 3, the specific method of delaying the transmission of some data packets in the data transfer station so that the second client can receive the data packets in order is: P1: First, mark the data transfer station as ZH, then mark the data packet as Dj, where j is the sequence number of the data packet. When the data packet Dj enters ZH, set the time threshold T and the transmission threshold YU, where YU includes several data packets Dj; P2: Then, with the transmission threshold YU as a unit and the time threshold T as an interval, several data packets Dj in the data information are transmitted in sequence until the second client receives all the data packets Dj in order and the data transmission is terminated.
5. A data encryption authentication method based on data information protection according to claim 4, Features: There is at least one data transfer station ZH established in P1, and the transmission threshold YU is set according to the second client.
6. An electronic device, It is characterized in that include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 5.
7. A storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 5.
