An image encryption method and device, and an image decryption method and device
An encryption method and encryption device technology, applied in computer security devices, instruments, calculations, etc., can solve problems such as consumption, encrypted data volume expansion, and large storage space, so as to enhance encryption effects, reduce storage requirements, and avoid extreme expansion. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] like figure 1 As shown, the embodiment of the present invention is an image encryption method. Different from text data, image data has particularity: a single pixel value usually does not have clear semantics. model. Therefore, it is not necessary to perform high-intensity homomorphic encryption on each pixel. It is only necessary to introduce randomness between adjacent pixels to disrupt the original pattern and make it unrecognizable, so as to achieve the purpose of encryption.
[0043] An image encryption method according to an embodiment of the present invention includes:
[0044] Based on the encryption key, a first random sequence and a second random sequence are generated; the second random sequence is a binary sequence used to indicate the reciprocal sequence element in the first random sequence;
[0045] generating a third random sequence according to the first random sequence and the second random sequence;
[0046] According to the third random sequence, ...
Embodiment 2
[0063] like figure 2 As shown, the present invention implements an image encryption method, including:
[0064] Based on the encryption key, a first random sequence and a second random sequence are generated; the second random sequence is a binary sequence used to indicate the reciprocal sequence element in the first random sequence;
[0065] generating a third random sequence according to the first random sequence and the second random sequence;
[0066] According to the third random sequence, random base conversion is performed to decrypt the encrypted image data.
[0067] Preferably, performing random binary conversion according to the third random sequence to decrypt the encrypted image data, including:
[0068] (1) Split the encrypted image data, and obtain the i-th element from the lowest position to the highest position of the encrypted image data;
[0069] (2) Perform decryption to restore the first image data according to the following formula.
[0070]
[007...
Embodiment 3
[0084] The present invention implements an image encryption device, comprising:
[0085] The first and second sequence generation modules, based on the encryption key, generate a first random sequence and a second random sequence; the second random sequence is a binary sequence, and is used to indicate the reciprocal sequence element in the first random sequence;
[0086] a third sequence generation module, which generates a third random sequence according to the first random sequence and the second random sequence;
[0087] The image encryption module performs random binary conversion according to the third random sequence, and encrypts the input first image data.
[0088] The present invention implements an image decryption device, comprising:
[0089] The first and second sequence generation modules, based on the encryption key, generate a first random sequence and a second random sequence; the second random sequence is a binary sequence, and is used to indicate the recipr...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


