How to password-protect a file transfer

TL;DR
To password-protect a share, open Shafle, pick your file, and switch on “Password-protect this share.” Share the code (or QR) as usual, but send the password separately. When the recipient connects, Shafle asks them for the password before the transfer starts — the file only begins sending once they enter it correctly.

A share code is convenient, but anyone who gets hold of it could connect. Adding a password gives you a second factor: even with the code, a recipient can’t receive the file without also knowing the password.

Steps

  1. Open Shafle, choose Send File, and add your file (or several — they zip into one).
  2. Turn on Password-protect this share and type a password.
  3. Send the recipient the code or QR as normal — and give them the password through a separate channel (say it out loud, or send it in a different app).
  4. When they enter the code, Shafle prompts them for the password. Once it’s correct, the transfer begins.
Shafle send screen with the 'Password-protect this share' toggle switched on
Turn on 'Password-protect this share' and set a password before you share the code.
Shafle receiver screen asking for the password before the transfer starts
The recipient is asked for the password before any file data is sent.

Is the password checked before the file is sent?

Yes — and this is the important part. Shafle verifies the password before any file data leaves your device. It never sends the file and then asks. Technically, your browser sends a random challenge, the recipient’s browser answers with a proof derived from the password, and your browser only starts the transfer if the proof checks out. The plaintext password itself is never sent across the connection.

Because the check happens up front, a wrong password simply means the transfer never starts. After three incorrect attempts the transfer is cancelled. The connection itself is also already encrypted end-to-end (WebRTC), so the password is an access layer on top of that.

Tips

  • Send the password through a different channel than the code — not in the same message.
  • Use a password you can say quickly if you’re sharing in person.
  • Password protection applies to file transfers. For one-time text, use burn-after-reading instead.

Want the bigger security picture? See is P2P file sharing safe?

Frequently asked questions

How do I password-protect a file I'm sending?

In Shafle, choose Send File, turn on 'Password-protect this share', and set a password. The recipient must enter it before the transfer starts. Share the password separately from the code.

Is the password checked before or after the file transfers?

Before. Shafle verifies the password up front and only starts sending the file once it's correct — it never transfers the file first and asks afterward.

Does the password travel across the connection?

No. The recipient's browser proves it knows the password using a challenge-response, so the plaintext password is never sent. The connection is also encrypted end-to-end by WebRTC.

What happens if the recipient enters the wrong password?

The transfer simply doesn't start. After three incorrect attempts it is cancelled, and no file data is ever sent.

Try it now — no signup, no upload wait.Open Shafle

Related guides

Last updated: July 11, 2026