tckn_maskedIdentity

Mock Jutsu HOW-TO | EN

In modern software development, protecting sensitive user information is paramount, especially when dealing with regional identification standards like the Turkish Republic Identity Number. The tckn_masked function within the mock-jutsu library provides a robust solution for generating realistic test data that adheres to privacy regulations such as KVKK and GDPR. By producing a partially obscured 11-digit string, this utility allows developers to simulate identity fields in their applications without the risk of handling actual Personally Identifiable Information (PII) during the testing phase. This ensures that security remains a priority from the very first line of code.

When using tckn_masked, the library ensures that the generated mock data mirrors the visual structure of a real ID while maintaining strict confidentiality. The output typically follows a professional masking pattern, such as ***123456**, which hides the initial and final digits while preserving enough of the sequence to satisfy front-end formatting requirements or database constraints. This specific masking logic is crucial for developers who need to verify that their user interfaces can correctly display ID fields or that their data masking algorithms are functioning as expected across different layers of the application stack.

The versatility of the tckn_masked function makes it an essential tool for a wide variety of testing scenarios. Quality assurance teams can utilize it to populate staging databases, ensuring that performance benchmarks are accurate without compromising security. It is particularly effective for testing reporting modules, log management systems, and administrative dashboards where the full identity of a user should remain hidden from the viewer. By integrating this function, teams can maintain high-fidelity test environments that behave exactly like production systems while remaining fully compliant with international data protection standards.

Integrating this feature into your workflow is seamless, whether you are working in a Python environment, using a command-line interface, or conducting performance tests via JMeter. With a simple call to jutsu.generate('tckn_masked') or the corresponding CLI command, mock-jutsu delivers high-quality test data instantly. This accessibility reduces the overhead associated with manual data anonymization and empowers developers to focus on building features rather than worrying about potential data leaks. Ultimately, using tckn_masked streamlines the development lifecycle, providing a secure, efficient, and professional way to handle regional identity data in any software project.

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

Parameters

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

Other Languages