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

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