1. A method for data masking in database operations, the method comprising: intercepting a database query; identifying at least one field in the query that includes masked data; unmasking the query, the unmasking on a processor and comprising substituting the masked data with equivalent real values; sending the unmasked query to a database engine; intercepting a result provided by the database engine in response to the unmasked query; identifying values in the result corresponding to sensitive information; masking the result, the masking on a processor and comprising substituting the values in the result corresponding to sensitive information with masked data equivalents, wherein a length of a masked data equivalent is shortened if a data type of the masked data equivalent is a fixed length that exceeds a maximum length policy; and returning the masked result to a user.
8. The method according to claim 1 , wherein a length of the masked result is the same as the length of the result provided by the database engine.