How to mask credit card numbers in log files with Log4J?

前端 未结 2 1131
我在风中等你
我在风中等你 2020-11-29 04:58

Our web app needs to be made PCI compliant, i.e. it must not store any credit card numbers. The app is a frontend to a mainframe system which handles the CC numbers internal

相关标签:
2条回答
  • 2020-11-29 05:35

    A better implementation of credit card number masking is at http://adamcaudill.com/2011/10/20/masking-credit-cards-for-pci/ . You want to log the issuer and the checksum, but not the PAN (Primary Account Number).

    0 讨论(0)
  • 2020-11-29 05:41

    You could write your own layout and configure it for all appenders...

    Layout has a format method which makes a String from a loggingEvent that contains the logging message...

    0 讨论(0)
提交回复
热议问题