Encode the backwards alphabet cipher Given a string of text that contains lowercase letters, encode it as follows: (I will be using abcdef)


First, encode the alphabet cipher, but this time, 0-indexed. 000102030405
Reverse it. 504030201000
Loop through the string.


If the next two digits together are 25 or smaller, encode those two numbers. 5 04 03 02 01 00 0
Otherwise, encode one number. f e d c b a a

Join. fedcbaa


Test cases

abcdef                          fedcbaa
abcdefghijklmnopqrstuvwxyz      fyxwvucjsrqponmlktihgfedcbaa
helloworld                      dbromylloha
ppcg                            gcfpb
codegolf                        fboqedema
programmingpuzzlesandcodegolf   fboqedemddkiobpzuzqdscmkhqerpb


Encoder (not golfed)

Remember, this is code-golf, so the code with the fewest bytes wins.
Perl, 73 + 2 = 75 bytes
Run with the -lp flag
s/./sprintf&quot;%02d&quot;,-97+ord$&amp;/eg;$_=reverse;s/2[0-5]|[01]?[0-9]/chr$&amp;+97/eg