Skip to content

Zeyu-Li/credit-card-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Credit Card Validator

License: MIT

A rust script to check if a credit card is valid

How it works

Best way to get up to speed is to watch this HaI video, but the short version of it is:

  1. Check length to see if it exceeds standard credit card length
  2. Check the first 6 digits to see if they match an issued institution
  3. Check the check digit that uses Luhn's algorithm

About

A Rusty Credit Card Validator 💳

Topics

Resources

License

Stars

Watchers

Forks

Languages