au_tfnIntlIDs

Mock Jutsu HOW-TO | EN

The au_tfn function is a specialized utility within the mock-jutsu library designed to generate valid Australian Tax File Numbers for development and testing purposes. In the Australian financial and legal landscape, the Tax File Number (TFN) is a critical identifier used by the Australian Taxation Office (ATO). When building fintech applications, payroll systems, or government-facing portals, developers often require high-quality test data that mimics real-world identifiers without compromising the privacy of actual citizens. By utilizing au_tfn, teams can produce synthetic 9-digit numbers that satisfy the structural requirements of the ATO, ensuring that data pipelines and validation logic remain robust during the software development lifecycle.

To ensure the highest level of realism, mock-jutsu implements the specific MOD-11 weighted checksum algorithm used by Australian authorities. Each generated au_tfn is not merely a random sequence of numbers; it is a mathematically valid string where each digit is multiplied by a specific weight, and the sum is verified against a modulus. This level of precision is essential for testing front-end validation scripts and back-end database constraints that would otherwise reject simple random integers. Whether you are using the CLI tool for quick data generation or integrating the Python library directly into your automated test suites via jutsu.generate('au_tfn'), the function provides the consistency needed for rigorous quality assurance.

Versatility is a core benefit of the mock-jutsu ecosystem, allowing the au_tfn function to be deployed across various environments. For performance engineers, the JMeter integration allows for the inclusion of the ${__mockjutsu(au_tfn,)} function to generate unique test data during high-concurrency load tests, preventing caching issues or database collisions. For DevOps engineers, the CLI command "mockjutsu generate au_tfn" provides a rapid way to seed staging databases. By replacing sensitive Personal Identifiable Information (PII) with reliable mock data, organizations can significantly reduce their compliance risk while maintaining the integrity of their testing environments. Ultimately, the au_tfn utility empowers developers to build and verify complex Australian financial integrations with confidence and speed.

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

Parameters

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

Other Languages