Add ability to set an encryptor