Skip to content

A Rust library for validating Chinese identification card numbers based on official rules and checksums.

License

Notifications You must be signed in to change notification settings

crates-dev/china_identification_card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

china_identification_card

Official Documentation

Api Docs

A Rust library for validating Chinese identification card numbers based on official rules and checksums.

Features

  • Validates the length and format of a Chinese identification card number
  • Calculates and verifies the checksum according to official weight factors
  • Lightweight and easy to integrate

Installation

To use this crate, you can run cmd:

cargo add china_identification_card

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Contact

For any inquiries, please reach out to the author at root@ltpp.vip.

About

A Rust library for validating Chinese identification card numbers based on official rules and checksums.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages