Country pack
Türkiye PII detection: T.C. Kimlik No, IBAN
Short answer
Maskflare's Türkiye pack has 4 detectors. 2 validate a check digit or letter, 1 tests layout or an embedded date, 1 matches on pattern alone.
What the Türkiye pack covers
The Türkiye pack holds 4 detectors: IBAN, Phone number, Postal code and Identity number (T.C. Kimlik No). 2 of them recompute a check digit or letter, 1 tests layout or an embedded date only, 1 is pattern-only, and 1 waits for a keyword before it matches.
| Detector | Category | Validation | Valid example |
|---|---|---|---|
| IBAN | bank account number (IBAN) | Checksum | TR33 0006 1005 1978 6457 8413 26 |
| Phone number | phone number | Layout rules | +90 212 345 67 89 |
| Postal code | postal code | Pattern only | 34000 |
| Identity number (T.C. Kimlik No) | national ID number | Checksum | 10000000146 |
Every Türkiye detector in detail
IBAN
A bank account identifier. Validation: the registered length for the country and the ISO 13616 modulus 97 check. Valid example: TR33 0006 1005 1978 6457 8413 26; the same shape that fails is TR33 0006 1005 1978 6457 8413 20.
Phone number
A telephone number in the national format. Validation: between 7 and 15 digits, the range an international number can have. Valid example: +90 212 345 67 89.
Postal code
A postal code, which identifies a place rather than a person on its own. Validation: the pattern only, with no checksum or structural validator. It needs one of 7 keywords within 48 characters before the value, such as post code, posta kodu, postal code, postcode. Valid example: 34000.
Identity number (T.C. Kimlik No)
A national identity number. Validation: eleven digits with two check digits and no leading zero. A run of digits with no separator is judged by words nearby; the detector's own keywords include id no, id number, identity number, kimlik no. Valid example: 10000000146; the same shape that fails is 10000000140.
Local-language context words for Türkiye
These are the words in the catalogue that confirm a value as belonging to this country's detector. Shared English words such as ID number or tax id are left out here because many packs use them; a word below points at this pack even when other packs are on.
- Postal code:
posta kodu - Identity number (T.C. Kimlik No):
kimlik no,kimlik numarası,t.c.,t.c. kimlik,tc,tc kimlik,tckn
How Maskflare masks Türkiye identifiers
Detections are replaced with a token such as mf_mask_d7e0 before the request goes to the AI provider, and with response restoration turned on the real value is put back in the answer. The other actions are redact, partial, hash, format-preserving encryption, generalize, alert and block.
- Protect now, Finance - Protect now, Healthcare and Developer: mask (a reversible token) when Türkiye is a primary country.
- Monitor first: alert (counted, forwarded unchanged) when Türkiye is a primary country.
None of the compliance profiles (HIPAA Safe Harbor, GDPR (EU/EEA), UK GDPR, PCI DSS v4.0, US PII (CCPA/CPRA) and Swiss nDSG health data) includes the Türkiye pack. Its detectors run when Türkiye is chosen as a primary country or the pack is enabled directly.
Limits worth knowing
- A passing checksum shows that a value is well formed, not that it was issued to a real person. The examples on this page pass for that reason and are not real.
- 1 of the 4 detectors here matches on pattern alone (Postal code), so it can match text that merely has the same shape.
- Detectors read the text of the request. A value inside an image is found only after OCR, and a value split across lines is not one match.
- Names, addresses and free-text details are handled by other packs. This page is limited to the Türkiye identifiers.
Frequently asked questions
What does Maskflare detect for Türkiye?
4 detectors: IBAN, Phone number, Postal code and Identity number (T.C. Kimlik No).
Are Türkiye identifiers masked by default?
They are masked when Türkiye is chosen as a primary country (the default Protect now template uses the action mask), or when the pack is turned on directly. A country pack is not on for organisations that did not choose the country.
Which Türkiye identifiers have a checksum?
IBAN and Identity number (T.C. Kimlik No).
Do the Türkiye detectors need keywords?
1 of them do: Postal code.
Rules on this page describe what Maskflare's detectors and validators check. They are read from the detection catalogue and are not the specification of the body that issues the identifier. Examples are synthetic.