Add encryption and decryption of objects.