created encryptor class with cipher method