https://github.com/zeyu-li/credit-card-validator
A Rusty Credit Card Validator 💳
https://github.com/zeyu-li/credit-card-validator
credit-card-validation luhn-algorithm
Last synced: 11 months ago
JSON representation
A Rusty Credit Card Validator 💳
- Host: GitHub
- URL: https://github.com/zeyu-li/credit-card-validator
- Owner: Zeyu-Li
- License: mit
- Created: 2021-08-14T03:15:21.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-14T03:27:46.000Z (almost 5 years ago)
- Last Synced: 2025-03-16T09:45:02.571Z (about 1 year ago)
- Topics: credit-card-validation, luhn-algorithm
- Language: Rust
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Credit Card Validator
[](https://opensource.org/licenses/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](https://www.youtube.com/watch?v=gwVmE8gcqrg&t=28s), 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