How to encrypt and decrypt RGB image using logical XOR operation?

14 views (last 30 days)
My aim is to encrypt an RGB image by performing XOR with another image I to generate a share S.Then during decryption should perform XOR with the generated share S and the image I to obtain the RGB image back.Can you please suggest any method.Can anyone help please.

Answers (1)

Walter Roberson
Walter Roberson on 6 Jun 2015
EncryptedImage = bitxor(FirstImage, SecondImage);

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!