The hr_oib function within the mock-jutsu library is a specialized tool designed to generate valid Croatian Personal Identification Numbers, known locally as Osobni identifikacijski broj. This identifier is a mandatory element for any software application dealing with Croatian citizens, residents, or legal entities. By utilizing mock-jutsu, developers can quickly produce high-quality test data that mirrors real-world requirements without compromising privacy or security. Whether you are building a fintech application, a localized e-commerce platform, or a government service portal, having access to accurate mock data is crucial for maintaining a robust and reliable software development lifecycle.
Technically, the hr_oib function generates an 11-digit string that strictly adheres to the ISO 7064 MOD 11,10 checksum standard. This specific mathematical algorithm is the backbone of OIB validation, ensuring that the final digit acts as a check for the preceding ten digits. Because mock-jutsu implements this logic with precision, the generated identifiers will successfully pass through validation filters, front-end masks, and database constraints just like genuine IDs. This level of accuracy allows QA engineers to perform exhaustive integration testing, ensuring that data processing pipelines and storage systems handle Croatian identifiers correctly under various edge-case conditions.
Integrating hr_oib into your existing workflow is seamless across several different technical environments. For Python developers, a simple call to jutsu.generate('hr_oib') returns a valid string ready for unit testing or script-based data seeding. Command-line enthusiasts can utilize the CLI command mockjutsu generate hr_oib for quick prototyping or automated shell scripting. Furthermore, performance testers can leverage the JMeter plugin with the syntax ${__mockjutsu(hr_oib,)} to simulate high-load scenarios involving thousands of unique identities. This cross-platform flexibility makes mock-jutsu an indispensable asset for modern DevOps and site reliability engineering teams.
Beyond simple generation, using hr_oib helps development teams avoid the legal and ethical risks associated with using real PII (Personally Identifiable Information) in non-production environments. It provides a safe, compliant way to populate staging databases, train machine learning models, or conduct user interface testing. By automating the creation of valid test data, developers can focus on core application logic rather than manual data entry. Ultimately, the hr_oib function empowers teams to deliver localized software for the Croatian market with higher confidence and significantly reduced development overhead.
mockjutsu generate hr_oibmockjutsu bulk hr_oib --count 10mockjutsu export hr_oib --count 10 --format jsonmockjutsu export hr_oib --count 10 --format csvmockjutsu export hr_oib --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate hr_oib --maskmockjutsu bulk hr_oib --count 5 --maskfrom mockjutsu import jutsujutsu.generate('hr_oib')jutsu.bulk('hr_oib', count=10)jutsu.template(['hr_oib'], count=5)# mask=True: regulation-compliant outputjutsu.generate('hr_oib', mask=True)jutsu.bulk('hr_oib', count=5, mask=True)${__mockjutsu_intl_ids(hr_oib)}# JMeter Function: __mockjutsu_intl_ids# Parameter 1: hr_oib# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_intl_ids(hr_oib,mask)}GET /generate/hr_oib# → {"type":"hr_oib","result":"...","status":"ok"}GET /bulk/hr_oib?count=10POST /template {"types":["hr_oib"],"count":1}# mask=true: regulation-compliant outputGET /generate/hr_oib?mask=trueGET /bulk/hr_oib?count=5&mask=true| Parameter | Values | Description |
|---|---|---|
| --mask | true | false | Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…) |