Add flag to perform encryption and decryption.