AES-256 CTR mode Image Encryption/Decrypti​on

AES-256 CTR (counting) mode Image Encryption/Decryption. Uses java library for encryption and decryption.

Vous suivez désormais cette soumission

Input a hexadecimal 256-bit AES key (AESkey), an image file name that needs to be either encoded or decoded, and the filename where you want the encoded/decoded image saved. This uses JAVA libraries to perform the image encryption/decryption but you can use my AES MATLAB code to perform the same operations natively. The randomly assigned initiation vector during encoding is converted to hexadecimal and stored as a comment when saving the .png encrypted image file. Recommend always using the .png file or another image file that does not compress and still has the ability to save a comment.
%encodes image
encodedImage3Dmatrix = AESimageEncryption(originalImageFilename,AESkey, encodedImageOutputFilename);
imshow(encodedImage3Dmatrix);
%decodes image
decodedImage3Dmatrix = decodeAESimage(encryptedImageFilename,AESkey,decodedImageOutputFilename);
imshow(decodedImage3Dmatrix);

Citation pour cette source

David Hill (2026). AES-256 CTR mode Image Encryption/Decryption (https://fr.mathworks.com/matlabcentral/fileexchange/183738-aes-256-ctr-mode-image-encryption-decryption), MATLAB Central File Exchange. Extrait(e) le .

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.2

Change code section in description to remove IV input/output.

1.0.1

Embedded initiation vector into the encrypted image (.png) comment.

1.0.0