Variation of cipher which implements rotate using functions mod, ord, and chr.