Encrypted file sharing resilient to full storage-layer compromise
Built to stay secure even when the storage layer is fully breached
Most systems treat encryption as a boundary, once an attacker reaches the storage layer, the data is exposed. SecureShare assumes that boundary has already been crossed. Every file is encrypted before it ever touches disk, every ciphertext is signed to prove sender identity, and every security event is written to a tamper-evident audit trail, so the system remains trustworthy even under adversarial conditions.
This project implements the same cryptographic controls found in production-grade secure systems: the key exchange mechanisms behind TLS 1.3, the signature model used in secure messaging protocols, and the audit integrity patterns required by SOC 2 compliance frameworks.
"If an attacker can read every file on the server, they still cannot read a single encrypted file without the recipient's private key."
The system enforces a strict verify-then-decrypt pipeline, signature verification runs first, before any key material is loaded or any decryption attempted. This eliminates an entire class of attack known as decryption oracle exploitation, where an attacker uses a system's error responses to gradually recover plaintext without the key. It is the same ordering principle mandated by OWASP cryptographic best practices.
Uses RSA-2048 OAEP (RFC 8017) to wrap a randomly generated AES-256 session key.
Uses ECDH P-256 with an ephemeral keypair and HKDF-SHA256 (RFC 5869) to derive the session key.
The architecture diagram below illustrates the full pipeline: upload, key derivation, encryption, signing, storage, verification, and decryption, each step isolated into a dedicated cryptographic module. The storage layer is treated as fully compromised by design. Every artifact stored on disk, ciphertext, wrapped keys, signatures, is unreadable and unmodifiable without triggering a cryptographic failure.
Every operation, key generation, upload, download attempt, and verification failure, is written to an append-only audit log sealed with HMAC-SHA256. Each entry is individually verified on load. Any modification to a past record, however small, is detected and flagged without access to the server secret. This satisfies a core requirement in SOC 2 audit trail controls: tamper-evident, verifiable logging that an administrator cannot silently alter.
Click to browse all screenshots with descriptions