Data encryption method, decryption method and device
A technology of data encryption and encryption algorithm, which is applied in the computer field and can solve problems such as small scope of application
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] refer to figure 1 , figure 1 It is a flow chart of steps of a data encryption method according to Embodiment 1 of the present application. Specifically, the data encryption method provided in this embodiment includes the following steps:
[0031] Step 102, acquire plaintext data to be encrypted expressed in binary format.
[0032] The data type of the plaintext data to be encrypted in the embodiment of the present application may be an integer or a floating point number, and may be a positive integer, a negative integer, a positive floating point data or a negative floating point number.
[0033] In the embodiment of the present application, there is no limitation on the data length of the plaintext data to be encrypted, for example, it may be 64 bits, or 32 bits, and so on.
[0034] Step 104: Based on the data type of the plaintext data to be encrypted, the plaintext data to be encrypted is reversed using a corresponding bit flipping method to obtain sequence-preser...
Embodiment 2
[0047] refer to image 3 , image 3 It is a flowchart of steps of a data encryption method according to Embodiment 2 of the present application. Specifically, the data encryption method provided in this embodiment includes the following steps:
[0048] Step 302, acquire plaintext data to be encrypted expressed in binary format.
[0049] Step 304: Based on the data type of the plaintext data to be encrypted, the plaintext data to be encrypted is reversed using a corresponding bit flipping method to obtain sequence-preserving binary plaintext data.
[0050] Among them, if the data type is a positive integer, negative integer or positive floating point number, only the high bits of the plaintext data to be encrypted are flipped; if the data type is a negative floating point number, all bits of the plaintext data to be encrypted are flipped.
[0051] Step 306: Segment the sequence-preserving binary plaintext data in order from the highest bit to the lowest bit to obtain a plain...
Embodiment 3
[0089] refer to Figure 5 , Figure 5 It is a flow chart of steps of a data decryption method according to Embodiment 3 of the present application. Specifically, the data decryption method provided in this embodiment includes the following steps:
[0090] Step 502, acquiring the ciphertext data and the data type of the plaintext data corresponding to the ciphertext data.
[0091] Step 504: Decrypt the ciphertext data by using a decryption algorithm corresponding to the sequence-visible encryption algorithm to obtain sequence-preserving binary plaintext data.
[0092] Step 506: According to the data type, the sequence-preserving binary plaintext data is flipped using a corresponding bit flipping method to obtain plaintext data corresponding to the ciphertext data.
[0093] In the data encryption stage, the bit flipping method corresponding to the data type of the plaintext data to be encrypted is adopted, and the plaintext data to be encrypted is flipped. Correspondingly, in...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


