Client / Partner Organisation 🏢 Open Architecture Standards
Sector Domain Open Architecture & Cyber Security
Role Title & Timeline Security & Infrastructure Architect (2024 – Present)
Data & Delivery Accuracy 100%
🔒

Architectural Breakdown & Implementation

Open Architecture

The Zero-Dependency Philosophy

Modern web applications frequently suffer from dependency bloat and security vulnerabilities introduced through third-party package ecosystems. This framework was developed as a clean, high-performance, stream-socket SMTP client in native PHP 8 with zero external dependencies.

Security Architecture & DPDP Compliance

The engine initiates low-level TLS 1.3 handshakes directly over network stream sockets, enforcing strict MIME multipart boundaries, dot-stuffing protocols, and input sanitization to eliminate header injection attacks. The accompanying OTP generator uses timing-attack-safe comparison and cryptographic PRNG tokens, ensuring strict adherence to India's DPDP Act privacy safeguards.

Benchmarked Performance

With an execution overhead under 15ms per dispatch and a memory footprint under 2MB, the library provides institutional systems with a rock-solid, ultra-fast notification engine requiring zero Composer maintenance.

Core Modules & Deployed Deliverables

Standalone Zero-Dependency SMTP Mailer Class (Pure PHP 8)
Cryptographic SHA-256 HMAC One-Time Password (OTP) Generation Engine
MIME Multipart / Alternative Email Packaging with Inline Asset Attachment
Unit Test & RFC Compliance Diagnostic Tool Suite

Engineering Challenges Tackled & Solved

Strict compliance with RFC 5321 and RFC 5322 without relying on heavy third-party vendor libraries.
Preventing SMTP connection hangs and zombie processes under high network latency.
Guarding against header injection and securing OTP verification against brute-force timing attacks.

Systems Architecture & Data Pipeline Strategy

Pure PHP 8 stream sockets (stream_socket_client) + OpenSSL TLS 1.3 crypto wrappers + HMAC-SHA256 tokenization.