log jps

34 views
Skip to first unread message

soltani...@gmail.com

unread,
Oct 24, 2022, 4:21:20 AM10/24/22
to jPOS Users
Hi everyone
Can anyone of you please guide on how can encrypt 'pan Number' (field 2) in log?
Regards
Mostafa

murtuza chhil

unread,
Nov 1, 2022, 9:59:56 PM11/1/22
to jPOS Users
Usually, we don't encrypt the data in the log, simply mask it, show the first 6 and last 4 (PADSS Compliance).

You can see how the participant does it 

You can change it to add encryption instead of masking there.


Or you can go one step lower and write your own Loglistener which gets called every time jpos writes to a log file and get hold of the pan and encrypt it there.

You class will implement LogListener or extend https://github.com/jpos/jPOS/blob/master/jpos/src/main/java/org/jpos/util/ProtectedLogListener.java to get the pan from the ISOMSg and encrypt it so it logs an encrypted version.

-chhil

Reply all
Reply to author
Forward
0 new messages