vknIdentity

Mock Jutsu HOW-TO | UK

The vkn function within the mock-jutsu library is a specialised tool designed to generate realistic Tax Identification Numbers, commonly used in financial and corporate sectors. For developers and QA engineers working on platforms that require tax-related documentation or legal compliance, having access to accurate mock data is essential. This function ensures that every generated 10-digit sequence adheres to the specific formatting and validation rules required by official systems, allowing for seamless integration testing without the risks associated with using sensitive production information.

At its core, the vkn generator employs the Modulo 11 validation algorithm to ensure the structural integrity of the test data. This mathematical check involves a weighted calculation of the first nine digits, with the final tenth digit serving as a checksum. By strictly implementing this standard, mock-jutsu guarantees that the generated numbers will pass through front-end validation logic and back-end database constraints as if they were genuine identifiers. This level of precision is vital for developers who need to verify that their systems can distinguish between valid and invalid tax identifiers during rigorous unit testing and debugging phases.

The versatility of the vkn generator makes it a significant asset across various development environments. Whether you are automating a Python-based test suite using the jutsu.generate('vkn') method, performing rapid prototyping via the command line with the mockjutsu generate vkn command, or conducting performance benchmarks in Apache JMeter using the ${__mockjutsu(vkn,)} syntax, the library provides a consistent and reliable experience. This cross-platform support ensures that data scientists, DevOps engineers, and software testers can maintain high standards of data quality across the entire software development lifecycle.

Beyond simple generation, using mock-jutsu for your test data needs significantly reduces the overhead of manual data entry and sanitisation. By automating the creation of valid tax IDs, development teams can focus on refining complex business logic rather than troubleshooting data format errors. The ability to produce thousands of unique, valid identifiers in seconds is particularly beneficial for populating staging databases or simulating high-volume financial transactions. Ultimately, the vkn function empowers developers to build more robust, reliable, and compliant applications by providing high-fidelity simulations of real-world identity markers.

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

Parameters

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

Other Languages