data-masking

Is it possible to apply the dynamic data masking on already encrypted column in same table

橙三吉。 提交于 2020-01-04 06:31:32
问题 I was implemented the Always Encrypted and Dynamic data masking concepts in my azure SQL database on two different tables. But I have doubt like “Is it possible to apply the dynamic data masking on already encrypted column in same table”. I tried the above scenario it gives error like “The data type of column 'SSN' does not support data masking function 'partial'.”. I run the below query for applying the masking on already encrypted column. ALTER TABLE [dbo].[CustomerTables] ALTER COLUMN [SSN

UPDATE query on field that has dynamic data mask

﹥>﹥吖頭↗ 提交于 2019-12-24 07:16:30
问题 I have this situation: A table in SQL Server 2016 has Dynamic Data masks configured on one column. I read one whole row into a front-end and display the values, including the masked field that returns value 'xxxx' To update the table, the application reads the values from the user front-end and generates an UPDATE SQL statement, that includes the 'xxxx' value for the masked field. SQL Server 2016 overwrites the existing value of the masked field with the value 'xxxx'. Is there a way to

Dynamic data masking with Entity framework

天涯浪子 提交于 2019-12-23 17:20:36
问题 Is it possible to use SQL's Dynamic data masking with Entity framework? If it is possible, is there any way to combine it with Asp.Identity? Project I'm working on requires that data is masked for certain user roles and visible to others. We are using database first approach and Entity framework with data fields masked with: MASKED WITH (FUNCTION = 'default()') that need to be visible to admins and remain masked to other user roles. User roles are defined thru Asp.identity. 回答1: If it suits

Dynamic Data Masks stopped working

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 03:36:39
问题 I had a test web page that used a restricted SQL user to query an Azure SQL DB to get data from masked fields. It returned the data and it was masked. I rejoiced. I changed the user with a button and voila! I could see the actual data. Then today, for some reason, it stopped working and I cried. I changed no code in between. I did however use the Azure portal to turn on auditing (can't image that affecting it). I thought TDE may conflict with DDM but I've read elsewhere that it doesn't - plus

JSON PII data masking in Java

断了今生、忘了曾经 提交于 2019-12-12 04:54:53
问题 I would like to mask certain elements of JSON and print to logs. Masking can be either by substituting by dummy data or removing the key pair .Is there a utility to do the masking in Java ? E.g., given JSON: { "key1":"value1", "key2":"value2", "key3":"value3", } mask key 2 alone and print JSON: { "key1":"value1", "key2":"xxxxxx", "key3":"value3", } or { "key1":"value1", "key3":"value3", } 回答1: You could use jackson to convert json to map, process map and convert map back to json. For example:

Oracle data masking

瘦欲@ 提交于 2019-12-04 13:17:42
We have one requirement to mask a particular table column using a Oracle function which gives persistent masked output string. We tried Oracle Hash Function but it does not give String type return value. We tried Oracle Random function (dbms_random.string) but it does not give Persistent output string. I read on internet that this is called deterministic masking. But we do not want to use Oracle Enterprise Manager; however we require a direct Oracle function. Please suggest. This problem is easily solved in 12c with the function STANDARD_HASH . The solution in previous versions is only

How to get the jQuery MaskedInput unmask() function to work properly?

有些话、适合烂在心里 提交于 2019-12-04 10:32:45
问题 I am trying to have one input on my page that I would like to have a U.S. phone number mask by default. If a end user clicks a checkbox specifing they would like to enter a International phone number I want the mask to be removed. I have tried multiple ways and have been unsuccessful thus far. In the current project I am using jQuery to hide/show a completely different input. But I don't like that option and would like a more streamlined approach. I am using the following: jQuery 1.4.1 (going

How to get the jQuery MaskedInput unmask() function to work properly?

梦想与她 提交于 2019-12-03 06:19:52
I am trying to have one input on my page that I would like to have a U.S. phone number mask by default. If a end user clicks a checkbox specifing they would like to enter a International phone number I want the mask to be removed. I have tried multiple ways and have been unsuccessful thus far. In the current project I am using jQuery to hide/show a completely different input. But I don't like that option and would like a more streamlined approach. I am using the following: jQuery 1.4.1 (going to upgrade to 1.4.2 soon) and jQuery.MaskedInput-1.2.2 <script type="text/javascript"> $(document)

Mask sensitive data in logs with logback

做~自己de王妃 提交于 2019-11-26 16:17:54
问题 I need to be able to search an event for any one of a number of patterns and replace the text in the pattern with a masked value. This is a feature in our application intended to prevent sensitive information falling into the logs. As the information can be from a large variety of sources, it is not practical to apply filters on all the inputs. Besides there are uses for toString() beyond logging and I don't want toString() to uniformly mask for all calls (only logging). I have tried using

Implement an input with a mask

会有一股神秘感。 提交于 2019-11-26 03:21:24
问题 I would like to implement a mask for a text input field which accepts a date. The masked value should display directly inside of the input . Something like this: <input type=\'text\' value=\'____/__/__\'> I wrote the mask as a value in that example, but my intent is to allow people to write a date without typing / or - to separate months, years and days. The user should be able to enter numbers into the displayed field, while the mask enforces the format automatically as the user types. I