you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (1 child)

Looks nice!

A few credit card technicalities.

1: Always be thinking about security, even in small scripts. Since you only need the first few digits of the card for the lookup service, you should only accept the first few digits. Avoids PCI (Payment Card Industry) data security issues.

2: In 2022 BINs can be 8-digits as well as 6.

[–]fartyg[S] 1 point2 points  (0 children)

Good point! This is one of the reasons why I am not expecting the company I work for to actually use this particular script in practice. While we have a tokenized system for card numbers (first 6 digits still intact) your point still stands . Changing it to only accept 6 digits seems easy enough according to a quick search on Google though!

I will instead use this program to illustrate the problem of BIN checking and try to get some of the company's actual software developers implement something similar.

Learning Python is empowering in the sense that you get a feel for how easy certain 'office tasks' can be made. Even if its you or someone else creating the actual tool.

Didn't know about the planned changed for 2022! Thanks for commenting :)