Encode the alphabet cipher 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 hello):


First, convert each letter in the string to a number depending on its position in the alphabet (a = 1, b = 2, etc.) Example: 8 5 12 12 15
Pad each number to two characters with 0s. Example: 08 05 12 12 15
Join. Example: 0805121215


Test cases

helloworld -&gt; 08051212152315181204
codegolf -&gt; 0315040507151206
alphabetcipher -&gt; 0112160801020520030916080518
johncena -&gt; 1015081403051401


Remember, this is code-golf, so the code with the fewest number of bytes wins.
05AB1E, 11 6 bytes

Code:

Ç4+€¦J


Explanation:

First, we convert the string to their ASCII values. codegolf would become:

[99, 111, 100, 101, 103, 111, 108, 102]


To get to the indices of the alphabet, you subtract 96:

[3, 15, 4, 5, 7, 15, 12, 6]


To pad with zeros, add 100 to each element and remove the first character of each int. For the above example, +100 would be:

[103, 115, 104, 105, 107, 115, 112, 106]


And removing the first character of each would lead to:

[03, 15, 04, 05, 07, 15, 12, 06] 


We can merge both steps above (the -96 and the +100) part to just +4. For the code:

Ç       # Convert to an array of ASCII code points
 4+     # Add four to each element in the array
   €¦   # Remove the first character of each element
     J  # Join to a single string


Try it online!