Create and crack a shift cipher code.

Creating a Shift Cipher Code:

Let's create a shift cipher code by shifting the letters by 3 positions.

Original Alphabet: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Shifted Alphabet: D E F G H I J K L M N O P Q R S T U V W X Y Z A B C

Now let's encrypt a message using this shift cipher code.

Original Message: HELLO
Encrypted Message: KHOOR

Cracking a Shift Cipher Code:
Now let's try to crack the code and decrypt the message "KHOOR".

We can use the brute-force technique by trying all shifts from 1 to 25 or use frequency analysis, but since we know the shift, we can simply reverse the shift.

Shifted Alphabet: D E F G H I J K L M N O P Q R S T U V W X Y Z A B C
Original Alphabet: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Encrypted Message: KHOOR
Decrypted Message: HELLO