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.
189
questions
2
votes
1
answer
50
views
How do I quote a newly created variable in a function to a helper function?
Question
What is the proper way to quote a parameter in a function that will be used to create a new variable that will be passed to another function?
Background
Ultimate goal is to create labels in a ...
1
vote
1
answer
60
views
Snowflake tags and tag based masking policies
I have been looking for a way of querying Snowflake tags and their belongings like schema, table, view, and column, as well as the masking policies, applied. The easiest way to do it is by querying it ...
0
votes
0
answers
47
views
Performance Effective JSON data masking Snowflake
I am trying to perform data masking on JSON data.
Using a Javascript UDF to update list of NESTED JPATH attributes similar to what is done here,
https://www.snowflake.com/blog/masking-semi-structured-...
0
votes
0
answers
39
views
Pull Data from Spreadsheet but only Display the Last Four Digits Using Apps Script
I use Apps Script to pull data from Google Spreadsheets and then Display the data on an HTML page in a table format.
I am trying to hide the data that is pulled from the spreadsheet and displayed on ...
0
votes
3
answers
38
views
Table cells as Password but Display the Last Four Digits
I want to hide some information on my table cells but display the last four digits of the cells, I am able to hide the cell using the CSS below but I do not know how to show the last four digits of ...
0
votes
0
answers
10
views
Associating countries to a grid cell in python
I am trying to solve an issue, i want to associate countries to each grid cell so if i call out a country by name or code, it plots the particular country for me, I have seen a similar thing done in R ...
1
vote
1
answer
30
views
Can the SQL function uuid_generate_v5(UUID, "namespace") be reversed?
I'm creating masked data from our production database and part of that process is masking all the UUIDs with the function uuid_generate_v5(UUID, "namespace"). This helps create masked data ...
0
votes
1
answer
124
views
SNOWFLAKE: Can't assign MASKING POLICY to TAG
I'm trying to assign a masking policy to tag in snowflake but I'm having trouble with required privilege or object missing depending on the role I'm using.
How I proceed :
use database DATABASE;
use ...
0
votes
1
answer
67
views
CDO : Masking 3D and 4D variables within the same netcdf file
I have a netcdf file called data.nc and a masking file called mask.nc. The data.nc file has a 3D variable A with dimensions over (time,long,lat), and 4D variable B with dimensions over (time,depth,...
0
votes
1
answer
30
views
using lapply with list of arguments on dplyr functions that uses data masking
when programming using dplyr, to programmatically use variables in dplyr vers from function arguments, they need to be references by {{var}}
This works well, but I would like to use lapply with the ...
0
votes
0
answers
52
views
I need to test SNOWFLAKE database where some columns will be PII masked. Those columns will go through ETL processing. Ideas on Test scenarios pls
Snowflake supports masking policies as a schema-level object to protect sensitive data from unauthorized access while allowing authorized users to access sensitive data at query runtime. This means ...
0
votes
0
answers
63
views
Postgresql14.5 Data Masking With PostgreSQL Anonymizer 1.0
I'm trying to understand data masking in Postgresql and implement it to my database. Firstly i tried on windows and mac but it is unsucessfull. On PostgreSQL Anonymizer 1.0, they said they will not ...
0
votes
1
answer
77
views
plotting an image in Hyperspy using Python to filter the pixel intensity
I am using HyperSpy software for image processing using python code below.
I am trying to plot the grayscale image shown below (SI[3]) but after filtering out unwanted pixels values (background noise)....
1
vote
1
answer
110
views
Change Spectre.Console mask character for secure input
I'm using the Spectre.Console library's password feature. It echos asterisks (***) instead of the secret text.
Is it possible to change the mask character, or to disable it completely (sudo style)?
-1
votes
1
answer
46
views
C language, Hangman, random word and masking issues
I am making a Hangman game and I have encountered an issue. In this code the program selects a random word from a finite number of values, then it takes the random word and masks it so that in future ...
0
votes
1
answer
49
views
C language Hangman game, how do i link the scanf with the masked word and have a counter inc for each incorrect input?
I am making a hangman game, I created a randf to select from a batch of words, aswell as masked the words in order for the guesser to guess the letter of the random word. The issue lies in that I have ...
0
votes
1
answer
21
views
data pseudonymization in postgreSQL
I am trying get the PII data from postgreSQL table. But I can't display the raw data.
How to Pseudonymize the data while fetching(select) it from postgreSQL database?
1
vote
3
answers
370
views
Mask values in a SQL Query string for SQL Server
I am a SQL Server DBA. I would like to write a procedure which I can provide to rest of my team where they can view the text for currently running queries on the server (Similar to how we view in ...
0
votes
1
answer
53
views
C Language - How to make rand value a constant for masking and unmasking in a hangman game
I am doing a project for a small hangman game that picks from a random selection of words and the user has to guess what the word is with a scanf inputting letters with a counter that builds a hangman,...
0
votes
0
answers
152
views
Data masking in MongoDB
We have a MongoDB database in a development environment. There are a lot of collections that contain names of people. What we want to do is the following:
mask the names in each collection, the ...
-1
votes
1
answer
104
views
Add Key data masking BigQuery
i am starting to use data masking on GCP.
Searching the net I did not find anything. I wanted to know if someone had also used a KEY to strengthen crypting
thank you
Hello
1
vote
1
answer
57
views
How do you dynamically mask data that saved as json via Azure?
I'm trying to mask sensitive data via an Azure SQL database.
The data is saved as normal text and one column as XML and another saved as json.
I've tried adding rules to the database but when I open ...
2
votes
0
answers
375
views
Masking data in the existing table
I am looking to mask the data(Columns) in the existing table without creating a new table and sensitive data(Columns) like Name, Mailid, phone number etc...
Can someone help me with the query.
Lets ...
3
votes
1
answer
127
views
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 ...
0
votes
2
answers
112
views
r - pass object into mutate
I am having trouble with passing a previously defined object to mutate. I want to define item as a column name and pass it into mutate. However when I do so, mutate creates a new column, and does not ...
0
votes
2
answers
146
views
How to convert scala.some to scala.mutable.Map?
i am trying to write code to mask nested json fields..
def maskRecursively(map :mutable.Map[String,Object]):mutable.Map[String,Object] ={
val maskColumns = PII_Data.getPIIData()
for((k,v) <- map){
...
1
vote
2
answers
29
views
Unmask data from matrix linux shell
i have 2 file.
analizeddata.txt:
A001->A002->A003->A004
A001->A005->A007
A022->A033
[...]
and
matrix.txt:
A001|Scott
A002|Bob
A003|Mark
A004|Jane
A005|Elion
A007|Brooke
A022|Meggie
...
0
votes
2
answers
73
views
Alberti or Caesar cipher in SQL on VARCHAR field to mask number
I've used an Alberti cipher in SAS to mask numbers which works great on varying lengths. However, I'm having trouble doing the same task in Redshift SQL.
If I have a number all the same length, I ...
0
votes
2
answers
406
views
NCO : Masking netcdf file using another netcdf mask file with (0 - 1) values
I have two .nc files data.nc and mask.nc.
Where: data.nc contain a variable called temp unmasked, while mask.nc contain the mask within a variable called tmask with (0 - 1) values.
Using NCO, how can ...
0
votes
1
answer
667
views
Data masking using PostgreSQL at Amazon RDS, how to?
I was looking into this
https://postgres.ai/docs/database-lab/masking
and was searching how to mask (dynamically) my data using Amazon RDS PostgreSQL, but couldn't find any real solution.
Is there any ...
0
votes
1
answer
62
views
How to substitute/mask values inside html tags in unix using AWK?
I have a html file with sensitive data. I want to mask those values , how can i do that using AWK ? I am fairly new to shell scripting so if you can help me with the code, that will be highly ...
0
votes
0
answers
37
views
Data masking algorithm suggestion?
I'm working on a project that requires presentation to a group, but real data cannot be exposed to this group of people. Is there a way I can mask my data (results remain numbers) to keep the data ...
3
votes
0
answers
455
views
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()
...
0
votes
1
answer
60
views
Dynamic Data Masking in SSAS cube process
I have dynamic masked data in my SQL Server DB and I want to know what will happen to that if I used this data in my cube processing . would it be still a masked data is the cube , and can I use the ...
0
votes
1
answer
621
views
Java regex mask all elements in a specific list in string
I have a string converted from JSON object.
String myString = {
\"name\":\"Dennis",
\"password\":\"12345\",
\"secretValue\":\&...
1
vote
1
answer
54
views
T-SQL :: information_type is not parsed in SQL Server 2019
My query doesn't seems to parse information_type
STEP TO REPRODUCE:
Take AdventureWork or any other test database
Right click on your test database > Tasks > Data Discovery and Classification &...
1
vote
0
answers
564
views
T-SQL function for data scrambling
GOAL: I have to obfuscate sensible data on a SQL Server database. Dynamic Data Masking is not an option. Data shuffle is not an option. The only option is Data Scramble.
SOLUTION: In the most hidden ...
1
vote
2
answers
1k
views
Generate random numbers, letters or characters within a range
I'm in the middle of a data anonymization for SQL Server.
I have this 3 formulas that help me create what I want:
SELECT CHAR(cast((90 - 65) * rand() + 65 AS INTEGER)) -- only letters
SELECT CAST((128 ...
0
votes
1
answer
201
views
sys.types returns wrong data type
My goal is to script out and export Dynamic Data Masking.
In order to do so I have created a query that allows me to create the code dynamically:
SELECT
schema_name(tbl.schema_id) AS schema_name,
tbl....
1
vote
1
answer
730
views
How to create a custom function for Dynamic Data Masking
I'm testing Dynamic Data Masking and I discovered that SQL Server propose only 4 functions out of the box:
Function
Examples
Default
Example of alter syntax: ALTER COLUMN Gender ADD MASKED WITH (...
0
votes
1
answer
55
views
Data Masking on Autonomous Database (ADB)?
What are the Data Masking options on ADB. The Oracle documentation seems to mention restrictions is Data Masking:
https://docs.oracle.com/en/cloud/paas/autonomous-database/adbsa/appendix-restrictions-...
0
votes
1
answer
211
views
T-SQL :: joining sys.masked_columns returns all columns in table
I'm trying to join INFORMATION_SCHEMA.COLUMNS and sys.masked_columns through sys.objects.
This is my query:
SELECT
TABLE_SCHEMA,
TABLE_NAME,
COLUMN_NAME,
DATA_TYPE
+ CASE WHEN ...
1
vote
1
answer
806
views
SQL Server :: MASKED WITH (FUNCTION = 'default()'); not working
My goal is to mask columns on SQL Server 2019.
I'm following a very easy guide.
I run this query against AdventureWorks2014 and I create a copy of Person.Person:
SELECT [BusinessEntityID]
,[...
0
votes
1
answer
144
views
Dajngo forms placeholder and mask: data correctly saved in database but wrongly displayed at screen
I have an issue with formatting floatfield in Django.
I set placehodler and data-mask: 000.0
When I enter data infields, it is correctly save in database but when I display form, it is wrongly ...
0
votes
1
answer
101
views
My question is how to create a VPD in Oracle with SQL that will also mask data
I am trying to create a VPD in Oracle using SQL statements. The purpose of this problem is so an employee could ONLY view records for employees in the same department while masking their coworker's ...
3
votes
1
answer
258
views
Data Masking policy error on shared database
I am trying to apply data masking policy on shared database where we have access to only views.However I provided grant to databases also.I am not able to apply this masking policy
here is my code
...
0
votes
1
answer
227
views
How do I add uniform random noise to a timestamp?
I am trying to mask datetime values by adding uniform random noise to the datetime values.
I currently use the Cape Python module to add noise to my data. However I'd like to develop my own custom ...
0
votes
1
answer
74
views
Conditional replacement of values in a R dataframe
I wanted to mask any values under 5 in my R dataframe and was looking for a solution to do it in one go for the entire dataframe.
0
votes
2
answers
898
views
masking string and phone number for dataframe in python pandas
Here I am trying to mask a data frame/dataset which have columns both integers and String values like this:
sno,Name,Type 1,Type 2,phonenumber
1,Bulbasaur,Grass,Poison,9876543212
2,Ivysaur,Grass,...
0
votes
1
answer
100
views
Potential security flaw using create table like
I've discovered an unexpected result while using data masking on tables. I have a process, running in an elevated role, that loads a table with sensitive data. Because the ingested data is ...