Coder Social home page Coder Social logo

cardidy's Introduction


cardidy logo

actions build version download license


Cardidy is a .net library to identify credit card number and cvv. Maintained by folks at D-EDGE.

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 as library

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" |> Seq.head = DEdge.CardType.Visa
    printfn "%b" isVisa
    0

Getting Started working on Cardidy

Let's go ๐Ÿ˜„

Note

The library mostly follows the Wikipedia's page: Payment card number. On Cardidy, we made some modifications though:

  • Diners Club International is known as Diners Club

License

MIT

cardidy's People

Contributors

aloisdg avatar hey24sheep avatar dependabot[bot] avatar blouflashdb avatar alejandrocq avatar wbalbo avatar torendil avatar fighou avatar aumeunier avatar ntbm avatar chiaramistro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.