Many file-sharing platforms advertise "password-protected links" in bold marketing copy, yet perform the encryption entirely on their backend servers. That architectural detail determines who can actually read your files: if your browser uploads raw plaintext bytes alongside your password, the server—and anyone with database or infrastructure access—receives everything needed to inspect your data. Genuine browser-side encryption transforms the payload in client RAM before upload begins.
TL;DR: In Sendly's optional password-lock mode (single files up to 50MB), your browser encrypts payload bytes locally with AES-256-CBC (PKCS#7, OpenSSL EvpKDF) without sending your passphrase to the server. Honest security engineering also requires stating exactly what remains unencrypted metadata and why passphrase strength matters.
1. Transport Security (HTTPS) vs. Client-Side Payload Encryption
Every modern transfer service uses HTTPS/TLS to protect files while traveling between your browser, CDN edge nodes, and the backend storage server. TLS prevents third parties on your coffee shop Wi-Fi or local ISP from intercepting file packets mid-flight. However, TLS terminates at the server.
For ordinary large files—such as sharing video renders, software installers, or assets up to 1GB across devices—ephemeral HTTPS transfers with automatic backend expiration strike a practical balance between speed and convenience. When you send sensitive documents, financial records, private SSH keys, or confidential contracts, you want the server itself to hold only opaque ciphertext.
2. Step-by-Step: How Browser-Side AES-256-CBC File Locking Works
Client-side file encryption executes entirely inside the sender's JavaScript runtime before any network POST request fires. Because the entire file buffer must be encrypted in memory inside the browser tab without crashing mobile Safari or Chrome heap limits, Sendly caps optional browser-side password encryption at 50MB per single file.
- Reading Binary Bytes Into RAM: The browser reads the selected file via
FileReader/ArrayBufferand converts bytes into a structured word array without touching disk caches. - Generating Salt & Key Material (OpenSSL EvpKDF): Using a fresh 64-bit random salt, OpenSSL's
EvpKDFkey derivation expands the user's passphrase into a 256-bit AES key plus a 128-bit Initialization Vector (IV). - Symmetric Block Encryption (AES-256-CBC + PKCS#7): Cipher Block Chaining (CBC) XORs each 16-byte plaintext block with the previous ciphertext block (starting with the random IV), applying deterministic PKCS#7 padding on the final block.
- Prepending the Salt Envelope: The encrypted output embeds the standard OpenSSL
Salted__8-byte header followed by the 8-byte random salt and ciphertext bytes. - Zero-Passphrase Upload: Only the ciphertext payload reaches the backend server. Your passphrase never leaves your device; you send the 6-digit retrieval key via one channel and share the passphrase separately out-of-band.
3. Honest Architecture Disclosure: What Is Protected vs. Unencrypted
Vague claims like "unbreakable military-grade encryption" hide architectural nuances that technical teams deserve to evaluate accurately. Look closely at what browser-side AES-256-CBC locking guarantees—and what it explicitly does not cover:
| Data Element | Protection Status | Technical Reality & Threat Model |
|---|---|---|
| File Contents (Payload Bytes) | Encrypted in browser (AES-256-CBC) | Server stores and relays ciphertext only; unreadable without the correct passphrase. |
| User Passphrase | Never leaves sender/recipient browser | No password reset exists; if forgotten, uploaded ciphertext is permanently unrecoverable. |
| Filename & Approximate Size | Unencrypted transport metadata | Used by the download UI envelope so recipients recognize the file extension cleanly before decrypting. |
| Ciphertext Integrity (AEAD) | Unauthenticated mode (CBC) | CBC relies on PKCS#7 padding validation without an explicit HMAC or GCM authentication tag against active storage tampering. |
Why EvpKDF Key Derivation Makes Strong Passphrases Essential
A critical detail in cryptographic architecture is the cost of key stretching. Because legacy OpenSSL EvpKDF derives AES keys rapidly using iterative MD5 hashing rather than memory-hard Argon2id or high-iteration PBKDF2-HMAC-SHA256, an attacker who captures the raw encrypted blob can test millions of weak dictionary guesses per second offline on a GPU rig.
Put simply: AES-256 math is only as strong as the passphrase you feed into EvpKDF. Never lock a confidential archive with 123456, your first name, or a single dictionary word—even 256-bit AES cannot save a 20-bit password from offline brute-force.
4. Decryption Flow & Fail-Closed Recipient Verification
When the recipient opens the 6-digit transfer code (or scans the QR code) and enters the passphrase in their browser:
- The browser downloads the encrypted blob over HTTPS into client memory.
- Using the extracted
Salted__header salt and the recipient-entered passphrase, it re-derives the identical 256-bit key and 128-bit IV locally. - If the passphrase is incorrect, PKCS#7 unpadding or UTF-8 validation fails cleanly inside the client browser without ever transmitting the recipient's guess to the server.
5. Why Browser Encryption Has a 50MB Cap While Standard Transfers Allow 1GB
Developers often ask why cloud transfers allow 1GB per standard batch while optional client-side password locking is capped at 50MB per single file. The constraint is entirely inside client JavaScript memory ceilings rather than server bandwidth.
When uploading a 1GB file normally via multipart FormData, the browser streams chunks directly from your local filesystem straight to the TLS socket using negligible RAM overhead. By contrast, synchronous in-memory encryption reads raw file bytes into JavaScript arrays, encodes Base64/WordArray ciphertext structures in heap memory, and uploads the encrypted blob—which temporarily consumes 3×–5× the raw file size in tab memory. Capping client-side locked uploads at 50MB prevents tab out-of-memory (OOM) crashes on mobile phones and budget laptops.
Comparing Ephemeral Cloud Storage vs. Zero-Knowledge Threat Assumptions
- No Account Trails: Because neither sender nor recipient creates an account, file keys are not bound to permanent user profiles or long-term identity histories.
- Short-Lived Lifecycle: Cloud relay files are designed as temporary transit capsules managed by backend expiry rather than permanent cold cloud drives.
- Out-of-Band Key Splitting: Sending the 6-digit link over email while sharing the decryption passphrase via encrypted messenger (Signal/WhatsApp) forces any attacker to compromise two completely separate channels.
6. Choosing the Right Mode for Your Threat Model
- Everyday Large Files (Up to 1GB): Use standard HTTPS ephemeral transfer when speed and cross-device convenience matter most and data is non-sensitive.
- Confidential Files Over Cloud Relay (Up to 50MB): Enable Add Password Protection with a 5–6 word random Diceware or 16+ character random passphrase generated locally inside Password Auditor & Generator.
- Zero-Server Direct Transfers (No 1GB Cloud Cap): When both sender and receiver are on the same Wi-Fi or LAN, skip cloud storage completely and beam files directly browser-to-browser via WebRTC using Local Drop.
You can review our full transparent engineering disclosures anytime on How Sendly Works, or start an encrypted browser-side transfer directly from the Sendly Home Transfer Zone.


