DEdge.Cardidy 0.5.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package DEdge.Cardidy --version 0.5.0                
NuGet\Install-Package DEdge.Cardidy -Version 0.5.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.5.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DEdge.Cardidy --version 0.5.0                
#r "nuget: DEdge.Cardidy, 0.5.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.5.0

// Install DEdge.Cardidy as a Cake Tool
#tool nuget:?package=DEdge.Cardidy&version=0.5.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

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

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 Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
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.2 555 2/19/2024
0.6.0 1,075 12/29/2022
0.5.0 2,527 2/11/2022
0.4.0 821 1/6/2022
0.3.0 646 1/6/2022
0.2.0 3,684 11/25/2021
0.1.0-beta 776 10/7/2021
0.1.0-alpha 568 10/6/2021