What is client-side encryption?

Client-side encryption means data is encrypted on the user’s own device, in a browser or app, before it is sent to a server, so the server only ever receives ciphertext.

Client-side vs server-side encryption

With server-side encryption, you upload readable data and the server encrypts it before storing it. The server sees the plaintext, at least briefly, and usually keeps the keys. With client-side encryption, the server never sees plaintext at all.

In the browser

Modern browsers include the Web Crypto API, which provides standard algorithms such as AES-256-GCM and secure random key generation. A web app can encrypt a file in the page, upload only the ciphertext, and keep the key out of every request.

Large files are often encrypted in chunks, so the browser does not have to hold the whole file in memory at once.

In SDKs and command-line tools

The same approach works in server code. An SDK encrypts data locally before calling an API, so the API never receives plaintext, even when the data comes from an automated system rather than a person.

Why it matters

Client-side encryption is what makes zero-knowledge services possible. A breach of the server, a misconfigured log or an over-broad support tool cannot expose content the server never had in readable form.

The catch

Someone has to manage the keys. If the key is lost, the data is gone. One-time sharing tools avoid most of this by creating a fresh key per share and putting it in the link, which only has to survive until the recipient opens it.

Konfidant's web app and SDKs encrypt on the client before anything is uploaded.

Konfidant shares passwords, keys and files through one-time links, encrypted on your device and deleted after the first view.

Try it free