This is just a simple tool written to generate mock data and validate for the Turkish Republic Identity Number for testing purposes.
This package can be installed from NuGet.
Install-Package tckndotnet add package tcknnuget install tcknusing TcknTools;
// Generate Number
var tckn = Tckn.Generate();
//Hash the number and save it to the db
var isValidated = Tckn.Validate(tckn);
if(isValidated) {
//continue the operations
}
//You can get the raw number if needed
var generatedNumber = Tckn.GeneratedNumber;