Redaction is a type of editing, typically the removal of information from a document before it is published or shared with a larger audience.
Questions tagged [redaction]
59 questions
1
vote
0 answers
Prevent logging personally-identify or sensitive data with generic type that excludes sensitive properties
I want to enhance my logger with a compile-time safety check that prevents me from logging personally-identifying or sensitive data. Here's what I imagine the interface could look like:
logger.LogInfo(safeuser => $"Logging out sensitive data…

Devon Parsons
- 1,234
- 14
- 23
1
vote
2 answers
Using spacy to redact names from a column in a data frame
I have a data frame named "df1". This data frame has 12 columns. The last column in this data frame is called notes. I need to replace common names like "john, sally and richard" from this column and replace the values with xxxx or something…

Amicheals
- 137
- 1
- 7
1
vote
2 answers
How to redact password in JSON using JavaScript [Typescript ES5]
I have an object that looks like this:
{
"property1": "value1",
"headers": {
"property2": "value2",
"Authentication": "Basic username:password"
},
"property3": "value3"
}
I need to redact password and preserve username.
From Delete…

aenagy
- 37
- 6
1
vote
1 answer
Not able to see the masked data even after adding policy successfully using DBMS_REDACT in oracle 12c
I was able to add the data redaction policy without any errors to a column of the table but not able to see any masked data, its all like same before, not able to hide the original. I have tried accessing table from a different user still original…

JagaSrik
- 700
- 7
- 23
1
vote
0 answers
Using itextsharp to remove text from pdf
I'm working on a program to remove text from a specified area of a pdf.
It works well on most pdfs, but I've found it falls over with some pdfs which contain graphics using Indexed colorspace - it only works on CMYK or RGB. I'm afraid I'm really…

Ash
- 23
- 4
1
vote
1 answer
How to correctly redact PDF file using Python?
I am trying to redact PDF files using python, tried many libraries like pdfrw, pdfminner and even pyPDF2 but none them helped me to redact content of PDF properly because it turns out that the library is merging the PDF using layers & its placing my…

Marcus
- 17
- 3
1
vote
2 answers
Beautiful Soup Can't Redact Phone Number with Parentheses
I'm trying to redact phone number information from an html file ... and while I can identify all of the phone numbers easily enough I can't figure out why I am unable to replace the phone numbers that have parentheses in them. Sample below:
import…

TripleOrange
- 33
- 6
1
vote
0 answers
Not Working: Redaction of Spark Environment Variable
I am using the following to add a spark job step to a running emr v5.11.1 cluster on AWS, using python 3.6.5 boto3 and spark 2.2.1:
myemr = boto3.client('emr',region_name=os.environ['AWS_DEFAULT_REGION'])
response =…

BilboC
- 149
- 2
- 15
1
vote
1 answer
How to redact information from Paper Trail's versions?
For the EU's GDPR compliance (user privacy), we need to redact personally identifiable information form the versions of our records. I've come up with something that seems to work, but figure I should ask if there's an established way to do…

Joshua Cheek
- 30,436
- 16
- 74
- 83
1
vote
1 answer
Replace specified phrase with * within text
My purpose is to accept a paragraph of text and find the specified phrase I want to REDACT, or replace.
I made a method that accepts an argument as a string of text. I break down that string into individual characters. Those characters are compared,…

Blank Reaver
- 225
- 3
- 5
- 17
1
vote
1 answer
Redact sensitive information when using ServiceStack.Text to serialize to log files
I am using ServiceStack.Text and ServiceStack.Logging.NLog to log the DTO requests sent to/from a web service from a .NET client application. While the machines are generally secure, I'd like to redact sensitive information that might be stored in…

jklemmack
- 3,518
- 3
- 30
- 56
1
vote
1 answer
getting exception while redacting pdf using itext
I am getting below exception while trying to redact pdf document using itext.
The issue is very sporadic like sometime it is working and sometimes it is throwing error.
at…

DevAvitesh
- 187
- 3
- 13
1
vote
0 answers
iTextSharp - Cropping PDF with images throws exception
I want to provide PDF redaction functionality by using PdfCleanUpProcessor and the following code:
Rectangle redactionRectangle = new Rectangle(74, 503, 385, 761);
PdfReader pdfReader = new PdfReader(sourcePath);
PdfStamper pdfStamper = new…

Narek Malkhasyan
- 1,332
- 1
- 12
- 22
1
vote
1 answer
ORA-28086: The data redaction policy expression has an error
I am trying to create a policy for a column in a database by using below script, which is creating successfully in one data base but in other database it was giving errors.
FYI: Both the databases have EXECUTE PRIVILEGE on DBMS_REDACT POLICY …

Anil Reddy
- 21
- 5
1
vote
2 answers
Gesture recognizer does not recognise a view which is created over an UIImageView
I have an UIImageview with tap gesture on it, such that any tap over it creates a rectangular view with white background. Which I can move any where over imageview. Like this I can create infinite views over that imageview.
Now my problem is that I…

Pankaj Wadhwa
- 3,073
- 3
- 28
- 37