中国身份证效验
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 hashes)
Built Distribution
Close
Hashes for ChinaIDCard-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dc510c87690bb040c23c1e69d688f4cff8ab702397a72c0cf3ca9cc8c403618 |
|
MD5 | 2fbdf33b89916f27e16d70b7ac58f6d9 |
|
BLAKE2b-256 | 66e922b86ba9271e19d9eebcc3fc0b1d79a90468e2c34ea967c06b77ce812b62 |