Lesson 02 · Everyone

How device encryption protects your secrets

about 6 minutes

Encryption is one of the few security tools that works even after something has gone wrong, such as a stolen laptop or a breached server. This lesson explains what on-device encryption actually does, where the key lives, and the moment its protection stops: when a secret is decrypted so it can be used. By the end you should be able to tell which risks encryption covers for you and which ones still need other controls.

The basic idea

Encryption scrambles data so that it can only be read by someone holding the right key, a secret value used to unscramble it. The scrambled version is called ciphertext; the readable version is plaintext.

Security people talk about data in three states:

  • At rest: stored on a disk, phone or server.
  • In transit: moving across a network.
  • In use: open in memory, on screen, or inside a program that is working with it.

Encryption is very good at protecting the first two. It cannot, by its nature, protect the third. To use a secret, something has to decrypt it.

Device encryption and client-side encryption

Two related ideas often get blurred together.

Device encryption (also called full-disk or storage encryption) protects everything stored on a laptop or phone. NIST’s guide to storage encryption describes the goal plainly: stop information on a lost or stolen device from being read by unauthorised people [1]. Modern phones do this by default. Android’s file-based encryption, for example, keeps most app data in “Credential Encrypted” storage that is only available after the user has unlocked the device [6].

Client-side encryption, sometimes called on-device or end-to-end encryption, goes one step further for specific data. The app encrypts your data on your device before it is uploaded, so the service storing it only ever holds ciphertext. Many password managers work this way. Bitwarden’s published security white paper, as one documented example, says keys are generated and managed on the user’s device, all encryption is done locally, and the company cannot access the master password or keys [7].

The benefit is a change in who you have to trust. With client-side encryption, a breach of the provider’s servers yields ciphertext, not readable secrets.

Where the key lives

Encryption is only as strong as the protection on its key. NIST’s key management guidance spends most of its length on this point: how keys are generated, stored, protected and eventually retired [2]. Three common arrangements:

  1. Derived from a password. Your master password is stretched by a deliberately slow function into a key. The internet standard for one such function, Argon2, exists precisely to make guessing passwords expensive for an attacker [4]. A weak master password undermines all of it.
  2. Held in hardware. Phones and many laptops have secure hardware that stores keys and releases their use only after you unlock the device.
  3. Wrapped by another key. Large systems encrypt data with one key, then encrypt that key with another, and store the two separately. OWASP’s guidance recommends keeping keys apart from the data they protect, so an attacker who reaches one does not automatically get the other [3].

The moment protection stops

Here is the part most explanations skip. Once you unlock a vault, open a file or fill in a password, the secret exists as plaintext somewhere: in the computer’s memory, on the screen, in a web form.

Bitwarden’s white paper is candid about this: the account encryption key is kept in memory while the app is unlocked, so that vault data can be decrypted, and the app works to clear it when it locks [7]. That is normal and unavoidable.

Research shows why it matters. In 2008, Princeton researchers demonstrated “cold boot” attacks: computer memory keeps its contents for seconds after power is cut, long enough to recover disk encryption keys from a machine that was running or asleep [5]. And password managers that fill logins into web pages have been studied repeatedly; a 2020 USENIX Security evaluation of thirteen browser-based password managers found improvements over earlier years but still reported issues including unencrypted metadata, insecure defaults and clickjacking risks [8].

The same logic applies to AI agents. If an agent, or any software, can read the web page or control the browser after a password has been filled in, encryption has already done its job and stepped aside. The pass privacy policy states this directly for its own product: approved logins are filled in the browser without sending the stored password to the agent, but software that can read or control the page may still be able to read a filled login [9].

What encryption does and doesn’t protect against

Situation Does on-device encryption help?
Laptop stolen while switched off Yes. Without the key, the disk is ciphertext.
Provider’s server is breached Yes, if data was encrypted client-side and keys never left your device.
Someone guesses or phishes your master password No. They now hold what unlocks the key.
Malware running on your unlocked computer Largely no. It can see what you can see.
An agent or extension that can read the page after a login is filled No. The secret is already plaintext in the page.
You forget the master password and have no recovery Encryption works against you: the data may be unrecoverable.
Metadata such as which sites you have accounts for Protected only where the product encrypts it; check which fields remain readable.

A worked example

Priya runs a three-person bookkeeping practice. Client records sit in a cloud accounting system; staff logins live in a password manager that encrypts on the device.

  • A staff laptop is left on a train. It was shut down, disk encryption was on, and the password manager was locked. The risk is low; the practice revokes the laptop’s sessions and changes the device password as a precaution.
  • The password manager’s provider reports a breach. Because the vault was encrypted on the device, the attacker holds ciphertext. The practice still checks that every staff member uses a strong, unique master password, because that is now the only thing between the ciphertext and the attacker.
  • A staff member installs a browser extension that “uses AI to help with forms”. It requests permission to read and change data on all websites. This is the case where encryption offers the least. The extension sees pages after logins are filled. Priya removes it and sets a rule: no extension or agent gets page-reading access to the browser profile used for client systems.

A short checklist

  1. Turn on full-device encryption on every laptop and phone, and require a lock screen.
  2. Prefer services that encrypt sensitive data on your device before upload, and read how they handle keys.
  3. Use a long, unique master password, and set up recovery options you can actually use.
  4. Set vaults and apps to lock automatically after a short idle time.
  5. Treat any software that can read your screen, pages or browser as able to read your unlocked secrets, and grant that access deliberately.

Key takeaways

Encryption protects data at rest and in transit by making it useless without the key, which is why it is so effective against stolen devices and server breaches. Client-side encryption changes who you have to trust, because the provider stores only ciphertext, but the strength of the whole arrangement then rests on your master password and the device that holds the key. Every secret must be decrypted to be used, and from that moment it is protected by other controls: the security of the device, the software running on it, and what you allow agents and extensions to read. When you evaluate a tool, ask not only “is it encrypted?” but “where is the key, and who or what can see the secret once it is unlocked?”

How primitive approaches this. The pass privacy policy describes this kind of design for its own vault: “Primitive Pass encrypts your vault on your device before it is uploaded”, its server “does not have the vault keys needed to read a locked vault”, and “Sign-in uses OPAQUE, so your master password is not sent to or learned by the server” [9]. These are primitive’s own statements, and, as this lesson explains, they describe protection for the stored vault, not for a login once it has been filled into a page.

Sources and further reading

  1. Scarfone, K., Souppaya, M., & Sexton, M. (2007). Guide to Storage Encryption Technologies for End User Devices (NIST SP 800-111). NIST. https://csrc.nist.gov/pubs/sp/800/111/final
  2. Barker, E. (2020). Recommendation for Key Management: Part 1 – General (NIST SP 800-57 Part 1 Rev. 5). NIST. https://csrc.nist.gov/pubs/sp/800/57/pt1/r5/final
  3. OWASP Cheat Sheet Series. (n.d.). Cryptographic Storage Cheat Sheet. https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html
  4. Biryukov, A., Dinu, D., Khovratovich, D., & Josefsson, S. (2021). Argon2 Memory-Hard Function for Password Hashing and Proof-of-Work Applications (RFC 9106). IRTF. https://www.rfc-editor.org/rfc/rfc9106
  5. Halderman, J. A., Schoen, S. D., Heninger, N., Clarkson, W., Paul, W., Calandrino, J. A., Feldman, A. J., Appelbaum, J., & Felten, E. W. (2008). Lest We Remember: Cold Boot Attacks on Encryption Keys. 17th USENIX Security Symposium. https://www.usenix.org/legacy/event/sec08/tech/full_papers/halderman/halderman.pdf
  6. Android Open Source Project. (n.d.). File-based encryption. https://source.android.com/docs/security/features/encryption/file-based
  7. Bitwarden. (n.d.). Bitwarden Security Whitepaper. https://bitwarden.com/help/bitwarden-security-white-paper/
  8. Oesch, S., & Ruoti, S. (2020). That Was Then, This Is Now: A Security Evaluation of Password Generation, Storage, and Autofill in Browser-Based Password Managers. 29th USENIX Security Symposium. https://www.usenix.org/conference/usenixsecurity20/presentation/oesch
  9. Primitive AI (PRIMITIVE AI LABS PTY LIMITED). (2026, 25 October). pass privacy policy, sections 03 (“AI agent access”) and 05. https://pass.primitiveai.com.au/privacy.html (primitive’s own statements; effective 25 October 2026)