jpos / jPOS

jPOS Project
http://jpos.org
GNU Affero General Public License v3.0
607 stars 460 forks source link

Masking support for 8-digit BINs #475

Open barspi opened 2 years ago

barspi commented 2 years ago

ISOUtil#protect() should have configurable/dynamic masking of PANs to support 8-digit BINs

Come up with a flexible and backward-compatible (default) solution.

aVolpe commented 2 years ago

@barspi this PR https://github.com/jpos/jPOS/pull/496 has a initial approach to solve this issue, the idea is that we have a Environment property that has the list of 8 length bines and we use that to protect.

We can update the format/name of the property, if is useful, I will update the support for 8 length bines on Card and Cardholder.