Text this: Cryptography, automata & learning theory