Allow overriding of encrypt/decrypt construction