kr_brnIntlIDs

Mock Jutsu HOW-TO | EN

The kr_brn function within the mock-jutsu library is a specialized utility designed to generate realistic South Korean Business Registration Numbers. As a critical component of the IntlIDs category, this generator produces strings following the standard ten-digit format: NNN-NN-NNNNN. Whether you are building an e-commerce platform for the Korean market or a corporate accounting system, having access to accurate mock data is essential for simulating real-world business entities. By using mock-jutsu, developers can bypass the manual creation of these identifiers and ensure their data sets remain consistent and professional.

South Korean Business Registration Numbers are more than just random digits; they follow a specific structure mandated by the National Tax Service. The first three digits typically represent the tax office code, the next two represent the type of business—such as a corporation or individual entity—and the final five include a serial number and a validation check digit. The kr_brn function automates the generation of these sequences, providing test data that mirrors the visual and structural requirements of genuine Korean business IDs. This level of detail is vital for UI/UX testing, where input masks and validation logic must be rigorously verified against localized formats.

In terms of practical application, the kr_brn generator is indispensable for stress testing databases and verifying API endpoints that handle international tax information. Developers can use mock-jutsu to populate staging environments with thousands of unique records, ensuring that search filters and sorting algorithms function correctly under load. Furthermore, the library offers incredible flexibility across different environments. You can quickly generate a single ID via the CLI with "mockjutsu generate kr_brn", integrate it into Python scripts using "jutsu.generate('kr_brn')", or even perform performance testing in JMeter using the "${__mockjutsu(kr_brn,)}" syntax.

Integrating kr_brn into your development workflow significantly reduces the time spent on manual data preparation. By leveraging high-quality mock data, teams can focus on core logic rather than the nuances of international ID formats. Mock-jutsu simplifies the complexities of South Korean regulatory standards, providing a reliable source of test data that enhances the robustness of any application. Ultimately, using a dedicated tool for business registration numbers ensures that your software is ready for global deployment with minimal friction and maximum data integrity.

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

Parameters

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

Other Languages