Mojic // C Lang, Cryptography, Scrypt

Engineering a 256-bit Rolling Cipher

Mojic is a sophisticated CLI tool designed to transform readable C source code into an unrecognizable, chaotic stream of emojis. It is not a simple substitution cipher; it is a cryptographic obfuscation tool engineered to defeat static analysis.

Operation Ironclad (Algorithm)

Early versions of Mojic relied on simple 64-bit bitwise XOR masking. While fast, it was fundamentally weak against frequency analysis. Real security requires real entropy. The v2.1 overhaul introduced "Operation Ironclad":

The most critical achievement: The exact same C source code, obfuscated twice with the exact same password, will produce entirely different, highly entropic byte outputs.

The Moon Protocol & CLI

Mojic files do not look like random noise immediately. They start with a distinct "Moon Header Protocol". The header contains the 32-byte Salt and a 4-byte Auth Check encoded using an alphabet of moon phases and clocks. This allows the decode command to instantly verify a password without processing the entire garbage stream.

Security & Rotation Tools (SRT)

The CLI includes an srt suite for managing encrypted files:

mojic srt --re secret.mojic

This command performs an Entropy Shuffle. It keeps the same password but generates a new salt and AES keystream, completely changing the visual emoji output to defeat pattern analysis over time.