refactored CFB cipher using objects