Skip to content

Turkish Citizenship ID Validator and Generator Library for Rust

License

Notifications You must be signed in to change notification settings

peacecwz/tck_no

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tck_no

Turkish Citizenship ID Validator and Generator Library for Rust

Installation

With cargo add installed run:

$ cargo add tck_no

Generate TC Identity

use tck_no::tckn;

fn main() {
    let tc_identity = tckn::generate();
    println!("{}", tc_identity);
}

Validate TC Identity

use tck_no::tckn;

fn main() {
    let tc_identity = "38246970008";

    if tckn::validate(tc_identity) {
        println!("Valid!");
    } else {
        println!("Invalid!");
    }
}

Contributing

Want to join us? Look at some of these issues:

License

Licensed under either of MIT license

About

Turkish Citizenship ID Validator and Generator Library for Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages