in reply to Find Credit Card Numbers and Mask only 6 digits in a logfile

Why are you storing credit card details in plain text in a log file?

  • Comment on Re: Find Credit Card Numbers and Mask only 6 digits in a logfile

Replies are listed 'Best First'.
Re^2: Find Credit Card Numbers and Mask only 6 digits in a logfile
by VinsWorldcom (Prior) on Apr 30, 2018 at 12:05 UTC
    Why are you storing credit card details in plain text in a log file?

    Not storing them; parsing the dump of a breach for posting on the dark web ... whoops, did I say that out loud?

Re^2: Find Credit Card Numbers and Mask only 6 digits in a logfile
by gtk (Acolyte) on Apr 30, 2018 at 10:59 UTC
    It is good question, due to some debugging purpose we have disabled the encryption and currently we want to mask only 6 digits.

        Please note that this is only for the testing environments for debugging purpose. In Production, numbers are fully masked.