Added encryption cipher functionality and added extra tests to digraph etc to ensure functionality works correctly