Beta Phase: Square45 is currently in beta testing. Expect some features or content to be incomplete or missing.
45

Symmetric-key Cryptography

The use of a single key for both encryption and decryption, providing confidentiality when the key is kept secret. Examples include AES and DES.
📜

The statement of the theorem

Let MM be the plaintext message and KK be the secret key, where M,K{0,1}nM, K \in \{0, 1\}^n. Define the encryption function EK:{0,1}n{0,1}mE_K: \{0, 1\}^n \to \{0, 1\}^m and the decryption function DK:{0,1}m{0,1}nD_K: \{0, 1\}^m \to \{0, 1\}^n. The system must satisfy the following properties for all valid inputs MM and KK:\nDecryption Property: DK(EK(M))=M\text{Decryption Property: } D_K(E_K(M)) = M\nKey Dependency: EK(M)EK(M) for KK\text{Key Dependency: } E_K(M) \neq E_{K'}(M) \text{ for } K \neq K'
Source: Wikipedia