Skip to content

check if a credit card is valid and it's type, written in rust.

License

Notifications You must be signed in to change notification settings

oliverborner/Credit-Card-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💳 Credit Card Checker

Actions Status License: MIT

A credit card checker written in Rust

alt text

Checks if a card number is valid with the help of the Luhn algorithm
and checks also for the card type via regex.

Useful links

Usage

cargo run  

Testnumbers

371449635398431 American Express
30569309025904 Diners Club
3530111333300000 JCB
5555555555554444 Mastercard
4111111111111111 Visa

Dependencies

  • colored = "2.0.0"
  • regex = "1"