Questions tagged [data-masking]

Data masking is a method of protecting or hiding data with place-holder or random characters, such as the mask used on a password entry field.

196 questions
78
votes
9 answers

Implement an input with a mask

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: I wrote the mask as a value in that example, but…
Stanislas Piotrowski
  • 2,595
  • 10
  • 40
  • 59
24
votes
6 answers

Mask sensitive data in logs with logback

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…
Michael Coxon
  • 3,337
  • 8
  • 46
  • 68
18
votes
8 answers

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

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…
Terry Nederveld
  • 722
  • 1
  • 6
  • 14
14
votes
9 answers

Character mask output data on select

I'm using SQL Server 2008. I would like to character mask the output data of a query. This is my data from a column on a table when doing a select: column1 384844033434 743423547878 111224678885 I would like an output like…
pyram
  • 925
  • 9
  • 24
  • 43
9
votes
2 answers

Data masking for data in AWS RDS

I have an AWS RDS (AuroraDB) and I want to mask the data on the DB. Does Amazon provides any service for data masking? I have seen RDS encryption but I am looking for data masking because the database contains sensitive data. So I want to know is…
Neron Joseph
  • 1,675
  • 22
  • 39
6
votes
3 answers

replace number greater than 5 digits in a text

a <- c("this is a number 9999333333 and i got 12344") How could i replace the number greater than 5 digits with the extra digits being "X" Expected Output: "this is a number 99993XXXXX and i got 12344" Code i tried: gsub("(.{5}).*", "X", a)
prog
  • 1,073
  • 5
  • 17
6
votes
1 answer

Mask data in an xarray and changing values for both True and False responses

I have an xarray DataArray which contains data from multiple days. I am able to mask it using the .where function for one condition, but I'd like to make all values over a certain value 1 and all values under that value 0. Ideally, I;d also like to…
JackLidge
  • 391
  • 4
  • 16
6
votes
1 answer

How can I create custom dynamic data mask function in SQL Server?

In SQL Server 2016 or SQL Azure, there is a feature called Dynamic Data Masking. However, it only has 4 types of masks. Is it possible to create custom mask functions? And how can I do this? I want a mask function like below(replace alphabet…
L.W
  • 225
  • 1
  • 2
  • 12
6
votes
1 answer

Validate data mask

I have a problem to validate data- mask. I need you where going "a" only become available the letters " VEJPG ". if anyone knows how it could do so thanks.
5
votes
1 answer

Dynamic data masking with Entity framework

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…
Matt
  • 1,245
  • 2
  • 17
  • 32
5
votes
1 answer

SQL Server Data Masking Minimum permissions needed to mask

I am in the process of masking some data in a SQL Server 2017 database. I have masked a column with this statement: ALTER TABLE lEmployee ALTER COLUMN FirstName nvarchar(160) MASKED WITH (FUNCTION = 'partial(2,"xxx",2)') And I can…
user3482471
  • 227
  • 1
  • 4
  • 14
4
votes
2 answers

Masking column in stored procedure

First of all, as an admin of SQL Server, I'm trying to use standard database for masking column. CREATE TABLE [Person].[MyEmailAddress] ( [MyBusinessEntityID] [int] NOT NULL, [MyEmailAddressID] [int] IDENTITY(1,1) NOT NULL, …
Daleman
  • 794
  • 8
  • 23
4
votes
2 answers

mysql data masking

Hi I'd like to a take a production database and use it in a private, development environment. But, I'd like to anonymize the data. I've been searching for an hour, but everything I find is for Oracle or SQL Server... nothing for mysql. I have…
Todd M
  • 1,012
  • 1
  • 15
  • 25
3
votes
1 answer

Mask out Islands and contour colors outside Greenland (Python)

I have this code below that plots the near air surface temperature of greenland, but, I need to mask out the colors outside Greenland and also the islands outside the main island of Greenland. Below is my code: import numpy as np import…
meteo_96
  • 289
  • 2
  • 11
3
votes
0 answers

Mask an exception details delivered through a serilog message

Issue on github that I firstly made: https://github.com/serilog/serilog/issues/1657 I've got such configuration: loggerConfiguration .Enrich.FromLogContext() .Enrich.WithEnvironmentName() …
Robert
  • 96
  • 6
1
2 3
13 14