code for image encryption and text encryption are same or not?

 Accepted Answer

Yes, the code is exactly the same if you want to encrypt files as a whole. If, though, you want to encrypt the data arrays that make up the image, rather than the file used to store the image, then you would have a small extra step in the image case in order to read in the image file using imread().

More Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!