The de_idnr function, situated within the IntlIDs category of the mock-jutsu library, is an essential tool for developers and quality assurance engineers requiring realistic German personal tax identification numbers. Known locally as the Steuer-Identifikationsnummer, this identifier is a cornerstone of German administrative and financial systems. The function generates a precise 11-digit string that adheres strictly to the formatting standards mandated by the German Federal Central Tax Office, providing high-quality mock data that enables teams to simulate complex workflows without the legal or ethical risks associated with using genuine sensitive information.
At its technical core, the de_idnr utility implements the ISO 7064 MOD 11,10 checksum algorithm. This ensures that every generated ID is mathematically valid and capable of passing through rigorous validation layers. Unlike simple random number generators, mock-jutsu ensures that the test data produced will be accepted by front-end form validators, database constraints, and back-end API schemas. This level of technical accuracy is critical for testing systems that perform real-time data integrity checks, making it a superior choice for creating robust environments for applications targeting the DACH region.
Developers can seamlessly integrate de_idnr into their existing workflows through multiple interfaces. For those working in a Python environment, a simple call to jutsu.generate('de_idnr') returns a valid identifier instantly. Command-line enthusiasts can leverage the CLI by running mockjutsu generate de_idnr for quick prototyping or automated shell scripting. Furthermore, performance testers can utilise the dedicated JMeter plugin syntax, ${__mockjutsu(de_idnr,)}, to populate high-concurrency load tests with unique and valid identifiers. These versatile access points ensure that high-fidelity test data is available regardless of the specific technology stack being utilised.
Utilising synthetic identifiers from mock-jutsu offers significant advantages regarding GDPR compliance and data privacy. By employing anonymised test data, organisations can safeguard their development and staging environments against the accidental leak of personal information. The de_idnr function simplifies the creation of realistic user profiles for payroll software, tax filing applications, and government-facing portals. Ultimately, mock-jutsu empowers developers to focus on building features and refining logic, confident that their systems are being tested against data that mirrors real-world complexity and regulatory requirements.
mockjutsu generate de_idnrmockjutsu bulk de_idnr --count 10mockjutsu export de_idnr --count 10 --format jsonmockjutsu export de_idnr --count 10 --format csvmockjutsu export de_idnr --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate de_idnr --maskmockjutsu bulk de_idnr --count 5 --maskfrom mockjutsu import jutsujutsu.generate('de_idnr')jutsu.bulk('de_idnr', count=10)jutsu.template(['de_idnr'], count=5)# mask=True: regulation-compliant outputjutsu.generate('de_idnr', mask=True)jutsu.bulk('de_idnr', count=5, mask=True)${__mockjutsu_intl_ids(de_idnr)}# JMeter Function: __mockjutsu_intl_ids# Parameter 1: de_idnr# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_intl_ids(de_idnr,mask)}GET /generate/de_idnr# → {"type":"de_idnr","result":"...","status":"ok"}GET /bulk/de_idnr?count=10POST /template {"types":["de_idnr"],"count":1}# mask=true: regulation-compliant outputGET /generate/de_idnr?mask=trueGET /bulk/de_idnr?count=5&mask=true| Parameter | Values | Description |
|---|---|---|
| --mask | true | false | Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…) |