Skip to content

codegidi/pan_masker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pan masker

Gem Version

A simple gem to scan a string, find and mask mastercard, visa and verve credit/debit card pans.

Installation

  1. Add pan_masker to your Gemfile as you normally would do with any bundler powered gem.

     gem 'pan_masker'
    
  2. Run a bundle install on your project

     bundle install
    
  3. Require pan_masker in your controller or helper classes

     require 'pan_masker'
    

Usage

  1. Find and mask all card type pans found in string supplied

     Pan_masker.mask('string to be scanned')
    
  2. Find and mask specific card type pans

     Pan_masker.mask('string to be scanned','card type')
    

###Supported card types

Mastercard , Visa , Verve , Maestro and ChinaUnionPay

How it works

The gem scans a string block for pans of lenght 16 (mastercard and visa) and 19 and masks them

About

Pan masker ruby gem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages