← Lab /Software

CNN-generated dynamic S-boxes boost image encryption security

Adaptive S-boxes created by a trained CNN provide greater non-linearity and resistance to statistical and structural attacks than fixed S-boxes

Software arXiv 18 Jun 2026 Method Simulation evidence

Published as “Image Encryption Algorithm Based on Convolutional Neural Networks and Dynamic S-Box Generation”

Why it matters

The approach enables fast, high-entropy image encryption that could be deployed in real-time multimedia security systems.

Summary

The paper shows that using a CNN to generate image-specific dynamic S-boxes yields encrypted images with entropy near 8, NPCR above 99.5 % and UACI around 33 %, all while encrypting/decrypting in under 50 ms on standard test images. Evidence comes from experiments on four benchmark images and comparisons to prior methods, but the evaluation is limited to a small set of images and lacks broader real-world testing.

What they found 2

  1. Encrypted images achieve entropy values close to the ideal 8.0

    “The entropy values are extremely close to the optimum value of 8, and all the images have entropy values more than 7.99, which means that the distributions of pixel values are highly unpredictable.”

  2. NPCR values exceed 99.5 % indicating high sensitivity to plaintext changes

    “The NPCR outcomes are above 99.5 percent, and the algorithm is very sensitive to tiny alterations of the input, being essential to defend against differential attacks.”

Caveats 2

  • 20% cropped 25.2 0.78 Moderate degradation, still recognizable
  • σ = 0.03 Gaussian noise 27.0 0.80 Noticeable noise, acceptable quality

What’s new here 4

  • Generates a unique S-box for each input image using features learned by a CNN
  • Combines CNN-generated S-boxes with chaotic maps for permutation and diffusion
  • Evaluates the generated S-boxes with cryptographic criteria (nonlinearity, SAC, BIC, uniformity) during training
  • Demonstrates real-time encryption/decryption (<50 ms) on multiple image sizes