Skip to content

Java code to enhance the security of image using hybrid algorithm (i.e., AES Encryption and RSA Encryption)

Notifications You must be signed in to change notification settings

bnaveen07/image-encryption

Repository files navigation

Image Encryption

This project is done as a part of Mini-Project in my 6th Sem.
Implementation of Image Encryption using Hybrid Algorithm (AES Algorithm and RSA Algorithm.

About the Algorithm


The proposed algorithm is that we will be using a hybrid algorithm (AES Algorithm and RSA Algorithm). We take an two images as input, one is which needs to be encrypted and other is reference image through which we will encrypt the input image. We convert these two images into a 2D Array of pixel values. After getting the pixel values in the 2D Array, we encrypt using RSA Algorithm. After encrypting perform some of the techniques from the AES Algorithm (i.e., XORing, Column Shifting, Row Shifting, Multiplication) to manipulate the pixel values. For Decryption, we perform a similar operation in the backway to retrieve back the RSA Encrypted Pixel values. These pixels need to be decrypted using RSA Algorithm to get back the original input image

AES Implementation

AES image encryption and decryption

AES Encryption Implementation

RSA Algorithm

Initially, we implemented RSA Algorithm for smaller numbers. After reading pixel values of image, we realized this code doesn't meet our requirement. So we have implemented for larger number using BigInteger

For Smaller Number

RSA Algorithm Implementation

For Larger Numbers

This code works for large number.

RSA Algorithm Implementation

Hybrid Algorithm

This contains the complete code implementation of the Hybrid Algorithm. Hybrid Algorithm Implementation

About

Java code to enhance the security of image using hybrid algorithm (i.e., AES Encryption and RSA Encryption)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages