An algorithm for verifying Hong Kong ID Card number.
- Verify a HKID
- Calculate check digit for a HKID
- Python (Development)
- JavaScript (May not up-to-date and higher translation priority)
- C# (May not up-to-date and lower translation priority)
This algorithm is now support Python 2 and 3 Run in shell
python HKID_Verification.py
Please provide your Hong Kong ID Card number including letter and digit in bracket such as "L5555550" (For security reason, value you typed will not be displayed): AY987654A
Run as library
from HKID_Verification import verify
ID = "AY987654A"
print(verify(id))
Place .js file in the path you want and add a <script> tag to link the file to webpage and call function with "HKIDverification(id)" where "(id)" is target HKID Card number
To-Do....
- New feature: HKID Card number generator
- Documentation and usage