Zeyu-Li / credit-card-validator

A Rusty Credit Card Validator 💳

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 💳

License:MIT License


Languages

Language:Rust 100.0%