Irreversible encryption method for data and related equipment

By performing multiple type conversion and encryption operations on the original data, an irreversible encrypted data stream is formed, which solves the security risks caused by key leakage and achieves efficient data protection.

CN114169000BActive Publication Date: 2025-04-11CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111473699.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2025-04-11
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

The prior art is difficult to effectively solve the security risks caused by key leakage after data encryption, especially in irreversible encryption scenarios.

Method used

An irreversible encrypted data stream is formed by converting the original data into a text-type string and adding method identifiers, then converting it into a byte array and performing integer multiplication and adding gravity acceleration of the encrypted location.

Benefits of technology

It realizes irreversible data encryption, reduces security risks caused by key leakage, and improves the ability of ciphertexts to resist attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114169000B_ABST
    Figure CN114169000B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure provide a data irreversible encryption method and device, a computer-readable storage medium, and an electronic device, and belong to the field of computer and communication technology. The method comprises: obtaining original data input by a user; converting the original data into a text type string and adding a method identifier to obtain first data; converting the first data into a byte array, and multiplying the first N bits of the byte array by different integers to obtain second data, where N is an integer greater than or equal to 1; adding the second data to the gravity acceleration of the encryption location to obtain the first long integer data. The method of the present disclosure can realize irreversible encryption of data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer and communication technology, and in particular, to a method and device for irreversibly encrypting data, a computer-readable storage medium, and an electronic device. Background Art

[0002] At present, people have learned a lot from the study of natural systems and used them to develop new algorithms and models to solve complex problems. Therefore, many new ways to imitate biological intelligence behavior and use its intelligent mechanisms to solve complex problems continue to emerge. The irregular movement of dandelions has brought some inspiration to data encryption.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0004] The embodiments of the present disclosure provide a method and device for irreversible encryption of data, a computer-readable storage medium, and an electronic device, which can implement irreversible encryption of data.

[0005] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0006] According to one aspect of the present disclosure, there is provided a method for irreversible encryption of data, comprising:

[0007] Get the original data entered by the user;

[0008] Convert the original data into a text type string and add a method identifier to obtain first data;

[0009] Convert the first data into a byte array, and multiply first N bits of the byte array by different integers to obtain second data, where N is an integer greater than or equal to 1;

[0010] The second data is added to the gravity acceleration of the encrypted location to obtain the first long integer data.

[0011] In one embodiment, the encryption method further comprises:

[0012] Adding the first long integer data to the microsecond time of the system to obtain third data;

[0013] Convert the third data into a digital character string to obtain byte data;

[0014] The first M bits of the byte data are divided by different integers respectively to obtain second long integer data, where M is an integer greater than or equal to 1.

[0015] In one embodiment, the encryption method further comprises:

[0016] Adding the second long integer data to the millisecond time of the system to obtain fourth data;

[0017] Convert the fourth data into hexadecimal and then into a string type;

[0018] A character string is randomly deleted from the fourth data to obtain fifth data.

[0019] In one embodiment, the encryption method further comprises:

[0020] Add the custom longitude and latitude or the longitude and latitude of the encrypted location to get the longitude and longitude data;

[0021] Convert the latitude and longitude data into hexadecimal;

[0022] Adding the latitude and longitude data to the fifth data to obtain sixth data;

[0023] The sixth data is added to a special symbol to obtain seventh data.

[0024] In one embodiment, the encryption method further comprises:

[0025] When the third data exceeds 19 bits, the first 19 bits of data are retained.

[0026] According to one aspect of the present disclosure, a device for irreversibly encrypting data is provided, comprising:

[0027] A first acquisition module is configured to acquire original data input by a user;

[0028] A second acquisition module is configured to convert the original data into a text type string and add a method identifier to obtain the first data;

[0029] A third acquisition module is configured to convert the first data into a byte array, and multiply the first N bits of the byte array by different integers to obtain second data, wherein N is an integer greater than or equal to 1;

[0030] The fourth acquisition module is configured to add the second data and the gravity acceleration of the encrypted location to obtain the first long integer data.

[0031] According to one aspect of the present disclosure, there is provided an electronic device, including:

[0032] one or more processors;

[0033] The storage device is configured to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of the above embodiments.

[0034] According to one aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of the above embodiments is implemented.

[0035] The method disclosed in the present invention can only be used to encrypt data, and cannot reversely decrypt the encrypted data based on the key, so a series of security risks caused by key leakage can be reduced.

[0036] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The following drawings describe certain illustrative embodiments of the present invention, wherein like reference numerals represent like elements. These described embodiments are intended to be exemplary embodiments of the present disclosure and are not intended to be limiting in any way.

[0038] Figure 1 A schematic diagram showing an exemplary system architecture to which the irreversible encryption method for data according to the embodiments of the present disclosure can be applied;

[0039] Figure 2 A schematic diagram showing the structure of a computer system suitable for implementing the electronic device of the embodiment of the present disclosure is shown;

[0040] Figure 3 A flowchart of a method for irreversible encryption of data according to an embodiment of the present disclosure is schematically shown;

[0041] Figure 4 A flowchart of a method for irreversible encryption of data according to an embodiment of the present disclosure is schematically shown;

[0042] Figure 5 A flowchart of a method for irreversible encryption of data according to an embodiment of the present disclosure is schematically shown;

[0043] Figure 6 A flowchart of a method for irreversible encryption of data according to an embodiment of the present disclosure is schematically shown;

[0044] Figure 7 The basic encryption process of an embodiment is described;

[0045] Figure 8A block diagram schematically shows an irreversible encryption device for data according to an embodiment of the present disclosure;

[0046] Fig. 9 A block diagram schematically shows an irreversible encryption device for data according to another embodiment of the present disclosure;

[0047] Fig.10 A block diagram of an irreversible encryption device for data according to another embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0048] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more comprehensive and complete and will fully convey the concept of the example embodiments to those skilled in the art.

[0049] In addition, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring the various aspects of the present disclosure.

[0050] 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.

[0051] 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.

[0052] Figure 1 A schematic diagram of an exemplary system architecture 100 is shown to which the irreversible encryption method for data according to the embodiments of the present disclosure can be applied.

[0053] like Figure 1As shown, the system architecture 100 may include one or more of terminals 101, 102, 103, a network 104, and a server 105. The network 104 is a medium for providing a communication link between the terminals 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0054] It should be understood that Figure 1 The number of terminals, networks and servers in the embodiment is only for illustration. Any number of terminals, networks and servers may be provided as required. For example, the server 105 may be a server cluster composed of multiple servers.

[0055] Staff or users can use terminals 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Terminals 101, 102, 103 can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, portable computers and desktop computers, digital movie projectors, etc.

[0056] The server 105 may be a server that provides various services. For example, when a staff member or user sends the original data to be encrypted to the server through the terminal 103 (or the terminal 101 or 102), the server 105 obtains the original data input by the user; converts the original data into a text type string and adds a method identifier to obtain the first data; converts the first data into a byte array, and multiplies the first N bits of the byte array by different integers to obtain the second data, where N is an integer greater than or equal to 1; adds the second data to the gravity acceleration of the encryption location to obtain the first long integer data. The server 105 can display the irreversible encryption result of the data on the terminal 103 or other terminals, and then the staff member or user or other personnel can view the irreversible encryption result of the data based on the content displayed on the terminal. If it is a case of user password verification, the irreversible encryption result of the data will not be returned to the terminal for display.

[0057] For example, terminal 103 (or terminal 101 or 102) can be a smart TV, VR (Virtual Reality) / AR (Augmented Reality) helmet display, or a mobile terminal such as a smart phone, tablet computer, etc. on which a navigation, online car-hailing, instant messaging, video application (application, APP) is installed. The staff or user can make an irreversible encryption request for data through the smart TV, VR / AR helmet display or the navigation, online car-hailing, instant messaging, video APP, and the server 105 can obtain the original data that needs to be encrypted by the staff or user. The server 105 can return the irreversible encryption result of the data of the staff or user obtained to the or other smart TV, VR / AR helmet display or the navigation, online car-hailing, instant messaging, video APP, and then display the irreversible encryption result of the obtained data through the smart TV, VR / AR helmet display or the navigation, online car-hailing, instant messaging, video APP. If it is a case of user password verification, the result of the irreversible encryption of the data will not be returned to the terminal for display.

[0058] Figure 2 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the embodiment of the present disclosure is shown.

[0059] It should be noted that Figure 2 The computer system 200 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 disclosure.

[0060] like Figure 2 As shown, the computer system 200 includes a central processing unit (CPU) 201, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 202 or the program loaded from the storage part 208 to the random access memory (RAM) 203. Various programs and data required for system operation are also stored in the RAM 203. The CPU 201, the ROM 202 and the RAM 203 are connected to each other through a bus 204. An input / output (I / O) interface 205 is also connected to the bus 204.

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

[0062] In particular, according to an embodiment of the present disclosure, the process described below with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 209, and / or installed from a removable medium 211. When the computer program is executed by the central processing unit (CPU) 201, various functions defined in the method and / or device of the present application are executed.

[0063] It should be noted that the computer-readable storage medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-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 computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM (Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory) or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. 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 storage medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.

[0064] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the methods, devices and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions selected in the box can also occur in a different order from the order selected 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.

[0065] The modules and / or units and / or sub-units involved in the embodiments described in the present disclosure may be implemented by software or hardware, and the modules and / or units and / or sub-units described may also be set in a processor. The names of these modules and / or units and / or sub-units do not, in some cases, constitute limitations on the modules and / or units and / or sub-units themselves.

[0066] As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being installed in the electronic device. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiment. For example, the electronic device may implement the following Figure 3 Each step.

[0067] In related technologies, for example, machine learning methods, deep learning methods, etc. can be used to irreversibly encrypt data, and different methods have different scopes of application.

[0068] Figure 3 The flowchart of the irreversible encryption method of data according to an embodiment of the present disclosure is schematically shown. The method steps of the embodiment of the present disclosure can be executed by the terminal or the server, or by the terminal and the server interactively. For example, the method steps can be executed by the above-mentioned Figure 1 The server 105 in the embodiment is executed, but the present disclosure is not limited to this.

[0069] In step S310, original data input by the user is obtained.

[0070] In this step, the terminal or server obtains original data input by the user.

[0071] In the embodiments of the present disclosure, the terminal may be implemented in various forms. For example, the terminal described in the present disclosure may include mobile terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), irreversible encryption devices for data, wearable devices, smart bracelets, pedometers, robots, driverless cars, etc., and fixed terminals such as digital TVs (televisions) and desktop computers.

[0072] In step S320, the original data is converted into a text type character string and a method identifier is added to obtain the first data.

[0073] In this step, the terminal or the server converts the original data into a text type character string and adds a method identifier to obtain the first data.

[0074] In step S330, the first data is converted into a byte array, and the first N bits of the byte array are multiplied by different integers to obtain second data, where N is an integer greater than or equal to 1.

[0075] In this step, the terminal or the server converts the first data into a byte array, and multiplies the first N bits of the byte array by different integers to obtain second data, where N is an integer greater than or equal to 1.

[0076] In step S340, the second data is added to the gravity acceleration of the encrypted location to obtain first long integer data.

[0077] In this step, the terminal or the server adds the second data to the gravity acceleration of the encrypted location to obtain the first long integer data.

[0078] Figure 4 The flowchart of the irreversible encryption method of data according to one embodiment of the present disclosure is schematically shown.

[0079] In one embodiment of the present disclosure, the irreversible encryption method for data further includes steps S410-430.

[0080] In step S410, the first long integer data is added to the microsecond time of the system to obtain third data.

[0081] In this step, the terminal or the server adds the first long integer data to the microsecond time of the system to obtain the third data.

[0082] In one embodiment, when the third data exceeds 19 bits, the first 19 bits of data are retained.

[0083] In step S420, the third data is converted into a digital character string to obtain byte data.

[0084] In this step, the terminal or the server converts the third data into a digital character string to obtain byte data.

[0085] In step S430, the first M bits of the byte data are divided by different integers to obtain second long integer data, where M is an integer greater than or equal to 1.

[0086] In this step, the terminal or the server divides the first M bits of the byte data by different integers to obtain second long integer data, where M is an integer greater than or equal to 1.

[0087] Figure 5 The flowchart of the irreversible encryption method of data according to one embodiment of the present disclosure is schematically shown.

[0088] In one embodiment of the present disclosure, the irreversible encryption method for data further includes steps S510-530.

[0089] In step S510, the second long integer data is added to the millisecond time of the system to obtain fourth data.

[0090] In this step, the terminal or the server adds the second long integer data to the millisecond time of the system to obtain fourth data.

[0091] In step S520 , the fourth data is converted into a hexadecimal system and a character string type.

[0092] In this step, the terminal or the server converts the fourth data into a hexadecimal system and then into a character string type.

[0093] In step S530, a character string is randomly deleted from the fourth data to obtain fifth data.

[0094] In this step, the terminal or the server randomly deletes a character string from the fourth data to obtain the fifth data.

[0095] Figure 6 The flowchart of the irreversible encryption method of data according to one embodiment of the present disclosure is schematically shown.

[0096] In one embodiment of the present disclosure, the irreversible encryption method for data further includes steps S610-640.

[0097] In step S610, the customized longitude and latitude or the longitude and latitude of the encrypted location are added to obtain longitude and latitude data.

[0098] In this step, the terminal or the server adds the customized longitude and latitude or the longitude and latitude of the encrypted location to obtain the longitude and latitude data.

[0099] In step S620, the latitude and longitude data are converted into hexadecimal.

[0100] In this step, the terminal or server converts the latitude and longitude data into hexadecimal.

[0101] In step S630, the latitude and longitude data are added to the fifth data to obtain sixth data.

[0102] In this step, the terminal or the server adds the latitude and longitude data to the fifth data to obtain sixth data.

[0103] In step S640, the sixth data is added to a special symbol to obtain seventh data.

[0104] In this step, the terminal or the server adds the sixth data and the special symbol to obtain the seventh data.

[0105] The method disclosed in the present invention can only be used to encrypt data, and cannot reversely decrypt the encrypted data based on the key, so a series of security risks caused by key leakage can be reduced.

[0106] In one embodiment, the technical principles used in the present disclosure are as follows:

[0107] Convert the data to be encrypted into a string of type String (text type string), append "pgongy" (method identifier) ​​to it, and then convert it into a Byte array (byte array). Multiply the first 7 Byte data of the array by 237, 238, 246, 264, 239, 246, 240 respectively, and then add the gravity value (gravitational acceleration at the encryption location), and then get Long type data (the first long integer data).

[0108] Add the Long type data to the current system time in microseconds. If it exceeds 9223372036854775807, directly intercept and retain the first 19 digits of data, and then convert them to a string (numeric string) to obtain the Byte data (byte data). For the first 7 Byte data of the array, divide the first digit by 246, 264, 239, 246, 240, 246, and 237 respectively to get a Long data (the second long integer data).

[0109] Add the current system time in milliseconds to the Long data, convert it into hexadecimal data, convert it to string type, and randomly delete one string from the string.

[0110] Then, the processed string is operated on the location. You can use custom longitude and latitude or obtain the longitude and latitude of the current location, and mix the longitude and latitude with the previous string (add them together). Round the longitude and latitude to get an integer (longitude and latitude data), convert it to hexadecimal, and convert it with the previous string into a string array. Add the special symbols "~!@#$%^&*?_-" to convert the string array into a string type, and you will get a diverse and unique key.

[0111] The method disclosed herein switches the encryption of the data type multiple times and adds the current time, longitude and latitude, and the new string formed after concatenation and obfuscation is the encryption result.

[0112] Compared with the prior art, the advantages and effects of the present application are as follows: encryption diversity, the same encrypted data is repeatedly encrypted with different keys; the key is introduced into the irreversible encryption algorithm, and the atomicity cannot be divided any further; the key cannot be used for decryption, which greatly reduces the serious consequences that may be caused by leakage; the complexity of the rainbow table is increased, the possibility of reverse matching through random encryption is reduced, and the anti-attack ability of the ciphertext is improved.

[0113] Figure 7 The basic encryption process of an embodiment is described, which needs to go through four steps:

[0114] First, the corresponding numbers are generated by comparing the encrypted data with the key code table, and the Byte of the operation data is converted into a Byte array. The first 7 Bytes of the array are multiplied by 2 to the 37th, 38th, 46th, 64th, 39th, 46th, and 40th power respectively.

[0115] Perform time operations on the data, add the current system time microseconds to the data, and divide the first 7 bytes of the array by 2 to the 46th, 64th, 39th, 46th, 40th, 46th, and 37th power respectively.

[0116] The data is filtered and encrypted, the data is added with the current system time in milliseconds, converted into hexadecimal data, and one string is randomly deleted.

[0117] The data location is encrypted, the longitude and latitude of the executor are rounded off, and then special symbols “~!@#$%^&*?_-” are added. The longitude and latitude and special symbols are randomly inserted into the data.

[0118] The new string is encrypted and obfuscated and then output as the encryption result.

[0119] Figure 8 The block diagram of the irreversible encryption device for data according to one embodiment of the present disclosure is schematically shown. The irreversible encryption device for data 800 provided in the embodiment of the present disclosure can be set on the server side or the terminal, or partly on the terminal and partly on the server side. For example, it can be set Figure 1 The server 105 in the embodiment of the present invention is described below, but the present disclosure is not limited to this.

[0120] The irreversible encryption device 800 for data provided by the embodiment of the present disclosure may include a first acquisition module 810 , a second acquisition module 820 , a third acquisition module 830 and a fourth acquisition module 840 .

[0121] Wherein, the first acquisition module is configured to acquire original data input by the user;

[0122] A second acquisition module is configured to convert the original data into a text type string and add a method identifier to obtain the first data;

[0123] A third acquisition module is configured to convert the first data into a byte array, and multiply the first N bits of the byte array by different integers to obtain second data, wherein N is an integer greater than or equal to 1;

[0124] The fourth acquisition module is configured to add the second data and the gravity acceleration of the encrypted location to obtain the first long integer data.

[0125] For any incomplete description of the device, please refer to the specific content of the above method, which will not be repeated here.

[0126] Fig. 9 A block diagram of an irreversible encryption device 900 for data according to another embodiment of the present disclosure is schematically shown.

[0127] like Fig. 9 As shown, except Figure 8 In addition to the first acquisition module 810 , the second acquisition module 820 , the third acquisition module 830 and the fourth acquisition module 840 described in the implementation manner, the irreversible encryption device 900 for data further includes a display module 910 .

[0128] Specifically, after the encryption device obtains the encryption result of the data, the display module 910 displays the encryption result of the data to the staff or the user or the staff.

[0129] In the irreversible encryption device 900 for data, the encryption result of the data can be displayed through the display module 910.

[0130] Fig.10 A block diagram of an irreversible encryption device 1000 for data according to another embodiment of the present disclosure is schematically shown.

[0131] like Fig.10 As shown, except Figure 8 In addition to the first acquisition module 810 , the second acquisition module 820 , the third acquisition module 830 and the fourth acquisition module 840 described in the implementation manner, the irreversible encryption device 1000 for data further includes a storage module 1010 .

[0132] Specifically, the storage module 1010 is used to store data in the process of irreversible encryption of data to facilitate subsequent calling and reference.

[0133] It can be understood that the first acquisition module 810, the second acquisition module 820, the third acquisition module 830, the fourth acquisition module 840, the display module 910 and the storage module 1010 can be combined in one module, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first acquisition module 810, the second acquisition module 820, the third acquisition module 830, the fourth acquisition module 840, the display module 910 and the storage module 1010 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented in hardware or firmware such as any other reasonable way to integrate or package the circuit, or in a suitable combination of software, hardware and firmware. Alternatively, at least one of the first acquisition module 810, the second acquisition module 820, the third acquisition module 830, the fourth acquisition module 840, the display module 910 and the storage module 1010 can be at least partially implemented as a computer program module, and when the program is run by a computer, the function of the corresponding module can be executed.

[0134] It should be noted that, although several modules, units and sub-units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules, units and sub-units described above can be concretized in one module, unit and sub-unit. Conversely, the features and functions of one module, unit and sub-unit described above can be further divided into being concretized by multiple modules, units and sub-units.

[0135] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0136] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and embodiments are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0137] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for irreversible encryption of data, characterized in that: include: Get the original data entered by the user; Convert the original data into a text type string and add a method identifier to obtain first data; Convert the first data into a byte array, and multiply first N bits of the byte array by different integers to obtain second data, where N is an integer greater than or equal to 1; Adding the second data to the gravity acceleration of the encrypted location to obtain first long integer data; Adding the first long integer data to the microsecond time of the system to obtain third data; Convert the third data into a digital character string to obtain byte data; Dividing the first M bits of the byte data by different integers respectively to obtain second long integer data, where M is an integer greater than or equal to 1; Adding the second long integer data to the millisecond time of the system to obtain fourth data; Convert the fourth data into hexadecimal and then into a string type; A character string is randomly deleted from the fourth data to obtain fifth data.

2. The method according to claim 1, characterized in that Also includes: Add the custom longitude and latitude or the longitude and latitude of the encrypted location to get the longitude and longitude data; Convert the latitude and longitude data into hexadecimal; Adding the latitude and longitude data to the fifth data to obtain sixth data; The sixth data is added to a special symbol to obtain seventh data.

3. The method according to claim 1, characterized in that Also includes: When the third data exceeds 19 bits, the first 19 bits of data are retained.

4. An irreversible encryption device for data, characterized in that: include: A first acquisition module is configured to acquire original data input by a user; A second acquisition module is configured to convert the original data into a text type string and add a method identifier to obtain the first data; A third acquisition module is configured to convert the first data into a byte array, and multiply the first N bits of the byte array by different integers to obtain second data, wherein N is an integer greater than or equal to 1; The fourth acquisition module is configured to add the second data to the gravitational acceleration of the encrypted location to obtain the first long integer data; add the first long integer data to the microsecond time of the system to obtain the third data; convert the third data into a digital string to obtain byte data; divide the first M bits of the byte data by different integers to obtain the second long integer data, where M is an integer greater than or equal to 1; add the second long integer data to the millisecond time of the system to obtain the fourth data; convert the fourth data into hexadecimal and then into a string type; randomly delete a string from the fourth data to obtain the fifth data.

5. An electronic device, characterized in that: include: one or more processors; A storage device configured to store one or more programs, which, when executed by the one or more processors, enable the one or more processors to implement the method according to any one of claims 1 to 3.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Encryption method and device, equipment and medium

    CN109617680A

  • Method and device for encrypting data

    CN110516462A