Allows more customization of encryption and decryption stack. Should be no change for existing users. Fixes gh-124