Input
Output
BAABABAABBAABAAAABBAAAAAAABBABABBBA

26-letter binary index A=AAAAA โ€ฆ Z; ciphertext uses only A/B (decode ignores other characters).