Rust CLI to verify CC numbers using Luhn's Algorithm
Source is located at /src/main.rs
-
Install Rust
-
clone repo and run:
cargo build
cargo run -- $(cat ./cardnumbers)
The program takes card numbers as command line arguments
as that was a requirement. To show sample output of I created
the file./cardnumbers, it contains example numbers and is passed
usingcatcommand.