Encrypt by using a pipeline