il_idnrIntlIDs

Mock Jutsu HOW-TO | UK

The il_idnr function is a specialised tool within the mock-jutsu library designed to generate authentic Israeli Identity Numbers, commonly known as Mispar Zehut. For developers and QA engineers building applications for the Israeli market, having access to high-quality mock data is essential for validating input fields and maintaining database integrity. This function ensures that every generated ID follows the strict nine-digit format required by official systems, providing a seamless way to populate environments with reliable test data without relying on sensitive real-world information.

At the heart of the il_idnr generator is the Luhn algorithm, a checksum formula used to validate a variety of identification numbers across the globe. Each Israeli ID consists of eight base digits followed by a ninth check digit, which is mathematically calculated to ensure the string's validity. By incorporating this logic, mock-jutsu enables teams to bypass the "invalid ID" errors often encountered during automated testing. Whether you are performing unit tests in Python with jutsu.generate('il_idnr') or executing high-volume performance tests in JMeter using the ${__mockjutsu(il_idnr,)} syntax, the output remains consistent and verifiable against standard validation scripts.

The versatility of il_idnr makes it indispensable for various testing scenarios, particularly in Fintech, government services, and e-commerce platforms. Developers can use this function to test Know Your Customer (KYC) workflows, user registration forms, and administrative dashboards where an Israeli ID is a mandatory field. By using the mock-jutsu CLI command, mockjutsu generate il_idnr, engineers can quickly produce large datasets for stress testing or local development. This approach significantly reduces the risk of data breaches associated with using actual PII, as the generated values are synthetically produced yet structurally perfect.

Beyond simple validation, using il_idnr enhances the overall developer experience by automating a repetitive and error-prone task. Instead of manually calculating check digits or maintaining a static list of IDs, teams can integrate mock-jutsu directly into their CI/CD pipelines. This ensures that the test data remains dynamic and comprehensive, covering edge cases and ensuring that the software can handle a wide range of inputs. Ultimately, this function empowers teams to deliver robust, localised software solutions with greater speed and confidence, maintaining high standards of data privacy and technical accuracy throughout the development lifecycle.

CLI Usage
mockjutsu generate il_idnrmockjutsu bulk il_idnr --count 10mockjutsu export il_idnr --count 10 --format jsonmockjutsu export il_idnr --count 10 --format csvmockjutsu export il_idnr --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate il_idnr --maskmockjutsu bulk il_idnr --count 5 --mask
Python API
from mockjutsu import jutsujutsu.generate('il_idnr')jutsu.bulk('il_idnr', count=10)jutsu.template(['il_idnr'], count=5)# mask=True: regulation-compliant outputjutsu.generate('il_idnr', mask=True)jutsu.bulk('il_idnr', count=5, mask=True)
JMeter
${__mockjutsu_intl_ids(il_idnr)}# JMeter Function: __mockjutsu_intl_ids# Parameter 1: il_idnr# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_intl_ids(il_idnr,mask)}
REST API
GET /generate/il_idnr# → {"type":"il_idnr","result":"...","status":"ok"}GET /bulk/il_idnr?count=10POST /template {"types":["il_idnr"],"count":1}# mask=true: regulation-compliant outputGET /generate/il_idnr?mask=trueGET /bulk/il_idnr?count=5&mask=true

Parameters

Parameter Values Description
--mask true | false Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…)

Other Languages