Isolate encryption and decryption.