DEdge.Cardidy 0.6.0

.NET Standard 2.0
dotnet add package DEdge.Cardidy --version 0.6.0
NuGet\Install-Package DEdge.Cardidy -Version 0.6.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DEdge.Cardidy" Version="0.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DEdge.Cardidy --version 0.6.0
#r "nuget: DEdge.Cardidy, 0.6.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DEdge.Cardidy as a Cake Addin
#addin nuget:?package=DEdge.Cardidy&version=0.6.0

// Install DEdge.Cardidy as a Cake Tool
#tool nuget:?package=DEdge.Cardidy&version=0.6.0

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

  • git clone git@github.com:d-edge/Cardidy.git
  • cd Cardidy
  • dotnet test

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

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.6.0 184 12/29/2022
0.5.0 1,966 2/11/2022
0.4.0 257 1/6/2022
0.3.0 175 1/6/2022
0.2.0 3,153 11/25/2021
0.1.0-beta 327 10/7/2021
0.1.0-alpha 103 10/6/2021