A tiny Java CLI demo that performs a simple Caesar-style character shift (key = 1) on a single input line. The program prints the shifted ("encrypted") string, then shifts back and prints the original ("decrypted") string.
- Single-file Java program:
Encrypt.java - Reads one line from standard input
- Shifts every character by +1 (e.g., 'a' β 'b') and prints the result
- Immediately shifts back by -1 and prints the original line