Given a string that contains only lowercase letters, encode that string with the alphabet cipher.
To encode with the alphabet cipher (I will be using the example
- First, convert each letter in the string to a number depending on its position in the alphabet (
2, etc.) Example:
- Pad each number to two characters with
- Join. Example:
helloworld -> 08051212152315181204 codegolf -> 0315040507151206 alphabetcipher -> 0112160801020520030916080518 johncena -> 1015081403051401
Remember, this is code-golf, so the code with the fewest number of bytes wins.