The nl_bsn function within the mock-jutsu library is an essential tool for developers and QA engineers building software for the Dutch market. A Burgerservicenummer (BSN) is a unique personal identification number used in the Netherlands for interacting with government agencies, healthcare providers, and financial institutions. By using the nl_bsn generator, teams can produce high-quality mock data that mimics real-world identifiers, ensuring that application logic remains robust without the security risks associated with handling actual sensitive personal information or PII.
Technically, the nl_bsn generator produces a nine-digit string that strictly adheres to the MOD-11 weighted check digit algorithm. This specific validation method is a hallmark of the Dutch BSN; it involves multiplying each of the first eight digits by a descending weight from nine to two, while the final digit is multiplied by negative one. For the number to be valid, the sum of these products must be exactly divisible by eleven. Because mock-jutsu generates test data that passes these specific mathematical constraints, developers can confidently test form validation logic, database constraints, and API integration points that require authentic BSN inputs.
Integrating nl_bsn into your development workflow is seamless across various environments. For Python-based automation or backend scripting, a simple call to jutsu.generate('nl_bsn') provides immediate results. Command-line users can quickly seed local databases or generate flat files for batch processing using mockjutsu generate nl_bsn. Furthermore, the library offers native support for performance testing tools like Apache JMeter through the ${__mockjutsu(nl_bsn,)} syntax. This versatility makes mock-jutsu an indispensable asset for creating comprehensive test suites that require realistic international identifiers at scale.
Beyond simple validation, using nl_bsn for mock data generation helps organisations remain compliant with strict GDPR regulations. Using real citizen data in staging or development environments is a significant security liability. By leveraging mock-jutsu, developers can simulate complex user profiles and edge cases—such as bulk data migrations or high-concurrency registration flows—while maintaining total data privacy. This focus on accuracy and security ensures that your software is production-ready, reliable, and fully compliant with Dutch administrative standards.
mockjutsu generate nl_bsnmockjutsu bulk nl_bsn --count 10mockjutsu export nl_bsn --count 10 --format jsonmockjutsu export nl_bsn --count 10 --format csvmockjutsu export nl_bsn --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate nl_bsn --maskmockjutsu bulk nl_bsn --count 5 --maskfrom mockjutsu import jutsujutsu.generate('nl_bsn')jutsu.bulk('nl_bsn', count=10)jutsu.template(['nl_bsn'], count=5)# mask=True: regulation-compliant outputjutsu.generate('nl_bsn', mask=True)jutsu.bulk('nl_bsn', count=5, mask=True)${__mockjutsu_intl_ids(nl_bsn)}# JMeter Function: __mockjutsu_intl_ids# Parameter 1: nl_bsn# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_intl_ids(nl_bsn,mask)}GET /generate/nl_bsn# → {"type":"nl_bsn","result":"...","status":"ok"}GET /bulk/nl_bsn?count=10POST /template {"types":["nl_bsn"],"count":1}# mask=true: regulation-compliant outputGET /generate/nl_bsn?mask=trueGET /bulk/nl_bsn?count=5&mask=true| Parameter | Values | Description |
|---|---|---|
| --mask | true | false | Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…) |