Članci s tagom #oib
-
Field-level encryption in PHP: OIB at-rest with AES-256-GCM and key rotation
FieldEncryptor: AES-256-GCM with 12-byte IV + 16-byte auth tag, base64(iv+tag+ciphertext) format, fail-closed encrypt() throws on missing key (ENCRYPTION_FAIL_SILENT escape hatch), legacy plaintext passthrough on decrypt, ENCRYPTION_KEY_PREVIOUS rotation fallback, explicit controller encryption (not ORM-transparent).
-
PHP input validation with 18+ built-in rules: OIB, phone, decimal and more
Shinobi Apps framework Validator: pipe-separated rule string 'required|oib|max:11' or array form. OIB: 11-digit regex + Luhn-variant checksum (mod 10+11 ISO 7064 MOD 11-2). PATTERNS const for alpha_spaces/alpha_num/phone/decimal/currency/time_24h/oib/plain_text/comment. Conditional-required gates: required_if, required_unless, required_with, required_without. Unknown rule → throw InvalidArgumentException (fail-loud). Dot-notation for nested arrays. Stop on first failure per field.