Cipher
Classic encryption algorithms operating over uppercase letters, preserving punctuation and space formats.
Methods
static String transpositionCipher(String text)
Strips space sequences and maps character indices dynamically through alternating even-odd split blocks.
static String caesarCipher(String text, int shift)
Moves letter registers forward or backward along index bounds based on a positive shift value.
static String keywordCipher(String text, String keyword)
Substitutes the core alphabet based on a unique pattern created from an un-duplicated keyword.
static String giovanniCipher(String text, String keyword, String keyLetter)
An advanced keyword substitution variant that adds an alphabet-shifting offset derived from a reference key character.
Usage Example
JAVA
String original = "HELLOWORLD";
String step1 = Cipher.caesarCipher(original, 3); // "KHOORZRUog"
String step2 = Cipher.keywordCipher(original, "MYKEY");