# Encryption Analysis Examples

## Example 1: AES-GCM vs AES-CBC

**Input:**
```
Compare AES-GCM and AES-CBC for encrypting user data.
```

**Expected Output:**
AES-GCM provides authenticated encryption, parallelizable, no padding oracle attacks. AES-CBC requires separate MAC, sequential, vulnerable to padding oracles. Recommendation: AES-GCM.

## Example 2: Key Size Selection

**Input:**
```
What AES key size should I use for long-term data protection?
```

**Expected Output:**
AES-256 recommended for long-term (30+ years) protection, quantum resistance considerations, performance impact minimal, compliance requirements.

## Example 3: IV Handling

**Input:**
```
How should I handle initialization vectors in AES-GCM?
```

**Expected Output:**
Never reuse IV with same key, use 96-bit random IV or counter, catastrophic failure on reuse, implementation guidance.

## Common Use Cases

- Algorithm selection
- Security compliance
- Performance optimization
- Vulnerability assessment
- Migration planning
