de_idnrIntlIDs

Mock Jutsu HOW-TO | EN

The de_idnr function is a specialized utility within the mock-jutsu library designed to generate authentic-looking German personal tax identification numbers, known locally as the Identifikationsnummer or IdNr. For developers building financial, HR, or governmental software targeting the German market, having access to accurate test data is critical for both functionality and compliance. This function produces a precise 11-digit string that adheres to the strict structural requirements mandated by the Federal Central Tax Office (BZSt). By using mock-jutsu, engineers can bypass the risks associated with using real Personally Identifiable Information (PII) while ensuring their systems can handle regional data formats flawlessly.

At the core of the de_idnr generator is a sophisticated implementation of the ISO 7064 MOD 11,10 checksum algorithm. This specific standard ensures that every generated ID is mathematically consistent, allowing it to pass through input validation layers, database constraints, and front-end masks without triggering verification errors. Because the algorithm accounts for specific digit repetition rules and the final check digit calculation, the mock data produced is indistinguishable from real identifiers during the quality assurance process. This level of technical precision is essential for unit testing validation logic and ensuring that data pipelines correctly parse and store international identifiers without data corruption.

Integrating de_idnr into a modern development workflow is remarkably flexible, catering to various environments and testing tiers. Python developers can invoke the generator using the simple jutsu.generate('de_idnr') syntax, while DevOps engineers can leverage the mock-jutsu CLI for rapid script-based data seeding via the "mockjutsu generate de_idnr" command. Furthermore, performance testers can utilize the JMeter plugin to inject realistic test data into high-concurrency load tests using the ${__mockjutsu(de_idnr,)} function. This versatility eliminates the need for manual data entry or the maintenance of fragile, static CSV files, significantly reducing the overhead associated with test environment preparation.

Beyond technical accuracy, using synthetic identifiers like those provided by mock-jutsu helps organizations maintain strict compliance with data protection regulations such as GDPR. Since the de_idnr function creates entirely fictitious yet valid numbers, developers can safely share test databases and logs across distributed teams without compromising user privacy. Ultimately, this tool empowers software teams to build more robust, globally-aware applications by providing high-quality, standardized mock data that mirrors the complexity of real-world German tax records.

CLI Usage
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 --mask
Python API
from 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)
JMeter
${__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)}
REST API
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

Parameters

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

Other Languages