中国身份证效验
Project description
关于ChinaIDCard
这是一个进行身份证计算的ID库,主要应用场景为对身份证的合法性进行效验。
函数调用
目前版本,提供了下列函数:
check_ID_Card(ID Card) # 验证18位身份证是否在算法意义上合法
calculation_17ID_Card_code18(ID Card) # 通过身份证前17位获取第18位
generate_ID_Card() # 随机获取一个合法的身份证
验证
我们是通过http://www.ip33.com/shenfenzheng.html进行验证的结果
算法也来自于此网站
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ChinaIDCard-0.0.1.tar.gz
(2.0 kB
view details)
Built Distribution
File details
Details for the file ChinaIDCard-0.0.1.tar.gz
.
File metadata
- Download URL: ChinaIDCard-0.0.1.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | edf7ed98c3ed4cfa7e750be48ace012131226f7e9fec76b91fc35e49778d28c2 |
|
MD5 | 43fc8fd5bc03c2fcc3fc934e4d529846 |
|
BLAKE2b-256 | 0469e17e0d20013d4ec3802bde4aca70551cddea2ef61b72efa75e1efe07d9ab |
File details
Details for the file ChinaIDCard-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: ChinaIDCard-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dc510c87690bb040c23c1e69d688f4cff8ab702397a72c0cf3ca9cc8c403618 |
|
MD5 | 2fbdf33b89916f27e16d70b7ac58f6d9 |
|
BLAKE2b-256 | 66e922b86ba9271e19d9eebcc3fc0b1d79a90468e2c34ea967c06b77ce812b62 |