Skip to content

Files

Latest commit

af63d3e · Jun 10, 2023

History

History
27 lines (22 loc) · 1.32 KB

README.md

File metadata and controls

27 lines (22 loc) · 1.32 KB

chaos_based_cryptography


It's an cryptographic technique for securely transfering images over internet or storing images on clouds etc.

Its an 3-steps procedure to encrypt your image :
1. selecting a chaotic map
2. confusion of image
3. diffusion of image

first we select the chaotic map & generate a key-array which is equal to the total number of pixels we have in the image. Now keep it aside.

move to the second-step which is shuffling the image. since we are using an RGB-image, therefore it has 3D-matrix. so we first convert the 3D-matrix into 1D. Now apply the python function to randomize the indices of the 1D-array. Due to which the image get shuffled. then bring back to 3D-matrix & print it out

move to the third-step which is diffusion. For diffusion do XOR operation with key-array elements & pixels of the image. Due to which the pixel-intensity spread across the image. nobody can guess the real image.

for decryption again do XOR with the encrypted image and then convert to 1D-array & sort the indices. covert 1D-array to 3D-matrix.


chaos_based_cryptography.mp4