Perl Weekly Challenge 97: Caesar Cipher and Binary Substrings
These are some answers to the Week 97 of the Perl Weekly Challenge organized by Mohammad S. Anwar.
Task 1: Caesar Cipher
You are given string $S containing only the letters A..Z and a number $N.
Write a script to encrypt the given string $S using a Caesar Cipher with left shift of size $N.
Example:
Input: $S = "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG", $N = 3
Output: "QEB NRFZH YOLTK CLU GRJMP LSBO QEB IXWV ALD"
Plain: ABCDEFGHIJKLMNOPQRSTUVWXYZ
Cipher: XYZABCDEFGHIJKLMNOPQRSTUVW
Plaintext: THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
Ciphertext: QEB NRFZH YOLTK CLU GRJMP LSBO QEB IXWV ALD





