Skip to content
forked from d-edge/Cardidy

A .net library to identify credit card number and cvv

License

Notifications You must be signed in to change notification settings

hey24sheep/Cardidy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


cardidy logo

actions build version license


Cardidy is a .net library to identify credit card number and cvv.

Features

  • Easy to use
  • Easy to extend
  • Easy to maintain (Regex-free)
  • Up-to-date with Wikipedia
  • Check with the Luhn's algorithm
  • Can check for Cvv
  • Can guess anonymized credit card
  • Can guess truncated creditcard card
  • Support for Visa credit card
  • Support for Jcb credit card
  • Support for Amex credit card
  • Support for Discover credit card
  • Support for MasterCard credit card
  • Support for more...

Getting Started

Install the Dedge.Cardidy NuGet package:

PM> Install-Package Dedge.Cardidy

Alternatively you can also use the .NET CLI to add the packages:

dotnet add package Dedge.Cardidy

Next create a .net application and use Dedge.Cardidy:

var card = Dedge.Cardidy.Identify("4127540509730813").Single();
Console.WriteLine(card); // print Visa

or in F#:

open System

[<EntryPoint>]
let main _ =
    let isVisa = Dedge.Cardidy.Identify "4127540509730813" |> List.head = Dedge.CardType.Visa
    printfn "%b" isVisa
    0

License

MIT

About

A .net library to identify credit card number and cvv

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.9%
  • Batchfile 0.1%