https://github.com/therealpad/creditcardvalidator
Program using Luhn algorithm to validate or not credit card number
https://github.com/therealpad/creditcardvalidator
bitwise-operators cpp luhn-algorithm
Last synced: 8 days ago
JSON representation
Program using Luhn algorithm to validate or not credit card number
- Host: GitHub
- URL: https://github.com/therealpad/creditcardvalidator
- Owner: TheRealPad
- Created: 2024-02-26T07:35:22.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-27T05:33:04.000Z (over 2 years ago)
- Last Synced: 2025-03-06T12:50:19.864Z (over 1 year ago)
- Topics: bitwise-operators, cpp, luhn-algorithm
- Language: C++
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README


# CreditCardValidator
C++ library to validate a given credit card number
## How to use
1. Create a directory ```build```
```bash
mkdir build
```
2. Inside ```build```, build the cmake
```bash
cd build/ && cmake ..
```
3. Build the shared library (in build/)
```bash
make # the binary will be libcreditCardValidator.1.0.0.dylib
```
4. Download the lib on your machine (in build/)
```bash
cmake -P cmake_install.cmake
```
5. (Optionnal) run the unit test
```bash
./test_creditCardValidator
```
## How to use in another project
If you want to see how to use it, go to [example](example/)