https://github.com/d-edge/cardizer
A functional minimalist credit card randomizer to test application.
https://github.com/d-edge/cardizer
american-express card-network card-number credit-card dotnet generator hacktoberfest hacktoberfest-accepted hacktoberfest2021 jcb library mastercard random visa
Last synced: 5 months ago
JSON representation
A functional minimalist credit card randomizer to test application.
- Host: GitHub
- URL: https://github.com/d-edge/cardizer
- Owner: d-edge
- License: mit
- Created: 2021-03-12T21:25:46.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-02T16:51:43.000Z (over 2 years ago)
- Last Synced: 2024-12-13T17:14:47.978Z (6 months ago)
- Topics: american-express, card-network, card-number, credit-card, dotnet, generator, hacktoberfest, hacktoberfest-accepted, hacktoberfest2021, jcb, library, mastercard, random, visa
- Language: F#
- Homepage:
- Size: 140 KB
- Stars: 25
- Watchers: 9
- Forks: 8
- Open Issues: 72
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
![]()
Cardizer is a credit card randomizer to test application. Maintained by folks at [D-EDGE](https://www.d-edge.com/).
Keep in mind that all credit card numbers generated with Cardizer are completely random and do not hold any real life value.
## Features
* Easy to use
* Easy to extend
* Thread safe
* Check with the Luhn's algorithm
* 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## Getting Started
Install the [DEdge.Cardizer](https://www.nuget.org/packages/DEdge.Cardizer) NuGet package:
PM> Install-Package DEdge.Cardizer
Alternatively you can also use the .NET CLI to add the packages:
dotnet add package DEdge.Cardizer
Next create a .net application and use DEdge.Cardizer:
```fsharp
open System[]
let main _ =
DEdge.Cardizer.NextVisa () |> printfn "Visa: %s"
0
```or in C#:
```csharp
static void Main(string[] args)
{
var card = DEdge.Cardizer.NextVisa();
Console.WriteLine(card);
}
```output:
Visa: 4127540509730813
Of course the credit card value is going to be randomized.
## Sample applications
There is a F# sample application which can be found in the [`App`](https://github.com/d-edge/Cardizer/tree/main/src/App) folder and a C# sample application which can be found in the [`AppCs`](https://github.com/d-edge/Cardizer/tree/main/src/AppCs) folder.
## Contributing
Help and feedback is always welcome and pull requests get accepted.
* First open an issue to discuss your changes
* After your change has been formally approved please submit your PR **against the main branch**
* Please follow the code convention by examining existing code
* Add/modify the `README.md` as required
* Add/modify unit tests as required
* Please document your changes in the upcoming release notes in `RELEASE_NOTES.md`
* PRs can only be approved and merged when all checks succeed (builds on Windows, MacOs and Linux)## License
[MIT](https://raw.githubusercontent.com/d-edge/cardizer/main/LICENSE)