Crate israelid

Source
Expand description

Israeli ID number validation.

Israeli ID (Mispar Zehut) is composed of digits for the value (currently eight) and then one digit that is the checksum (Sifrat Biqoret), which makes ID numbers self-validating.

You can validate an ID with valid_ascii, and calculate a checksum digit with checksum_digit_ascii.

Functionsยง

checksum_digit_ascii
Calculates the checksum digit for the given ASCII ID, and returns it as an ASCII character.
valid_ascii
Validates the given ASCII ID number.