Blog
Latest articles
Tutorials, updates, and insights from PetexSpace.
Cryptographic Randomness in the Browser: Math.random vs crypto.getRandomValues
A deep architectural investigation into pseudo-random number generators (PRNG) versus cryptographically secure PRNGs (CSPRNG) in browser runtimes, detailing xorshift128+, state reconstruction attacks, and the Web Cryptography API.
Base32 vs Base64: Structural Differences, Padding Rules, and Cryptographic Usage
A deep technical specification of RFC 4648 binary-to-text encodings, contrasting Base32 and Base64 bitwise packing mechanics, padding matrices, alphabet ergonomics, and in-browser execution.
Passkeys vs TOTP: The Cryptographic Shift from Shared Secrets to Public Key Signatures
An architectural and security analysis comparing RFC 6238 Time-Based One-Time Passwords with FIDO2/WebAuthn Passkeys, exploring Adversary-in-the-Middle phishing resistance and origin binding.
Compiling TeX Engines to WebAssembly: Executing LaTeX in Modern Web Browsers
An architectural exploration of cross-compiling Knuth's monolithic TeX typesetting engine to WebAssembly, virtualizing POSIX file systems in-memory, and achieving client-side document compilation.
Demystifying the Jupyter Notebook Format: JSON Schema and Cell Output Parsing
A rigorous deep dive into the nbformat JSON schema, polymorphic cell architectures, MIME bundle hierarchies, XSS sanitization vectors, and client-side conversion pipelines.
In-Browser PDF Generation: Canvas Rendering, Vector Graphics, and WASM Compilers
An architectural analysis of generating Portable Document Format files in web runtimes: comparing DOM rasterization against vector-native operators, TrueType font subsetting, and WebAssembly engines.
Optical Character Recognition in Modern Browsers: WebAssembly Layout Analysis and Character ASTs
A deep technical investigation into in-browser computer vision: image binarization math, WebAssembly neural inference, physical layout segmentation, and hierarchical document AST reconstruction.
The Math Behind Floating-Point Inaccuracies: IEEE 754 Binary Arithmetic in Web Engines
A deep mathematical dissection of IEEE 754 double-precision floating-point arithmetic in JavaScript: binary conversions, subnormals, rounding modes, and arbitrary-precision rational engines.
Local-First Web Architecture: Designing High-Utility Applications Without Server Dependencies
Architectural strategy guide on building resilient, privacy-preserving web utilities that operate autonomously on user hardware, exploring reactive synchronization, offline capabilities, and zero-server attack surfaces.