Rubik's Cube
Encryption Algorithm

A block cipher that maps data onto the faces of a virtual Rubik's Cube. Explore how rotations, substitutions, and mixing create encryption — visually.

How It Works

Cube-Based Diffusion

Data is mapped onto the faces of a virtual Rubik's Cube. Rotations scramble byte positions, spreading changes across the entire block.

Configurable Security

Choose cube size from 2×2 to 6×6 and rounds from 4 to 20. Larger cubes mean bigger blocks and stronger diffusion.

Visual Exploration

Step through each round and watch the cube transform in real time. See how SubBytes, rotations, FaceMix, and key addition work together.

File Encryption

Encrypt any file with the Rubik's Cube algorithm. Download the encrypted output and decrypt it back to the original.