Today’s business world revolves around the need to share data. On the other hand, the leakage of sensitive data is becoming one of our main security threats. Organizations are becoming more aware of the need to control the information that flows out of their boundaries and must more strictly monitor this flow in order to comply with government regulations. This paper presents an SOA-based solution called Masking Gateway for Enterprises (MAGEN), which allows the sharing of data while safeguarding sensitive business data. The major novelty lies in architecting a single system that handles a wide range of scenarios in a centralized and unified manner.