Groups
Sign in
Groups
jPOS Users
Conversations
About
Send feedback
Help
log jps
35 views
Skip to first unread message
soltani...@gmail.com
unread,
Oct 24, 2022, 4:21:20 AM
10/24/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
11/1/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
https://github.com/jpos/jPOS-EE/blob/master/modules/txn/src/main/java/org/jpos/transaction/ProtectDebugInfo.java
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