CreditCard Identifier - Rust
Credit Card BIN validation library using bin-cc data.
Installation
Add this to your Cargo.toml:
[]
= "2.1.0"
Usage
use *;
Running the Example
Testing
# Run tests
# Run tests with output
Features
- Brand Identification: Identify card brand by BIN/IIN patterns
- CVV Validation: Validate CVV length for each brand
- Luhn Algorithm: Validate card numbers using Luhn checksum
- Detailed Brand Info: Get comprehensive brand information
- Performance: Pre-compiled regex patterns for fast validation
- Zero-cost abstractions: Compiled with Rust's performance guarantees
Supported Brands
See data/compiled/BRANDS.md for the complete list.
License
MIT License