au_acnIntlIDs

Mock Jutsu HOW-TO | EN

The au_acn function is a specialized tool within the mock-jutsu ecosystem designed to generate high-quality mock data representing Australian Company Numbers (ACN). Every corporation registered in Australia is issued a unique nine-digit identifier by the Australian Securities and Investments Commission (ASIC). When building applications for the Australian market, developers often require realistic test data to validate form inputs, database schemas, and external API integrations. By utilizing the au_acn generator, teams can ensure their software handles these identifiers correctly without relying on actual corporate records or sensitive production information.

At its core, the au_acn function adheres strictly to the official ASIC standards to provide maximum realism. It produces a nine-digit string where the final digit serves as a critical checksum. This checksum is calculated using a MOD-10 weighted algorithm, which involves multiplying the first eight digits by specific weights—8, 7, 6, 5, 4, 3, 2, and 1 respectively—summing the products, and then applying a modulus operation. Because mock-jutsu implements this logic precisely, the generated values will pass through the same validation logic and regular expression checks used by production systems, making it an indispensable asset for comprehensive quality assurance.

Integrating this function into a modern development workflow is seamless, regardless of the environment. Python developers can invoke it directly via the library using jutsu.generate('au_acn'), while DevOps engineers can use the CLI tool for quick data generation tasks or shell scripting. For those performing performance or load testing, the JMeter plugin allows for the dynamic insertion of ACNs into request bodies using the ${__mockjutsu(au_acn,)} syntax. This versatility ensures that test data remains consistent and valid across the entire software development lifecycle, from local unit tests to large-scale staging environments.

Beyond simple validation, using mock-jutsu to generate an au_acn provides significant security and privacy benefits. By using synthetically generated identifiers instead of real-world data, organizations mitigate the risk of data leaks and comply with strict data protection regulations. Whether you are seeding a sandbox database, testing an automated KYC (Know Your Customer) workflow, or verifying the UI layout of a financial dashboard, this function provides the reliability and speed needed to maintain high development velocity while ensuring the integrity of the Australian business logic within your application.

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

Parameters

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

Other Languages