reverse cipher refactor completed