# pglite-cipher > Encryption at rest for PGlite (Postgres in the browser and in webviews), like SQLCipher for SQLite. It is a PGlite filesystem (`EncryptedFs`) that encrypts every file under PGDATA with AES-256-GCM through WebCrypto, stores the blocks in IndexedDB, hides file names and sizes, and detects tampering at open. No runtime dependencies; `@electric-sql/pglite` (^0.5.10) is a peer dependency. While the database is open, its contents are plaintext in memory. To add it to an app that already uses PGlite, read llms-full.txt: it is self-contained. ## Docs - [Website](https://2002bishwajeet.github.io/pglite-cipher/): what it is, install, quick start, common questions - [Live demo](https://2002bishwajeet.github.io/pglite-cipher/examples/demo/): verify the encryption in a browser - [llms-full.txt](https://2002bishwajeet.github.io/pglite-cipher/llms-full.txt): everything an agent needs to integrate it, in one file - [README](https://github.com/2002Bishwajeet/pglite-cipher/blob/main/README.md): what it is and a quick start - [Guides](https://github.com/2002Bishwajeet/pglite-cipher/blob/main/docs/guides/README.md): quick start, migrating an existing app, where to keep the key, rotation, errors and recovery - [Usage](https://github.com/2002Bishwajeet/pglite-cipher/blob/main/docs/usage.md): options, syncing, open modes, errors, keys and rotation, verify(), memory on mobile - [Security](https://github.com/2002Bishwajeet/pglite-cipher/blob/main/SECURITY.md): threat model and primitives ## Optional - [Design](https://github.com/2002Bishwajeet/pglite-cipher/blob/main/docs/design/README.md): architecture, format, integrity, keys - [Performance](https://github.com/2002Bishwajeet/pglite-cipher/blob/main/docs/design/performance.md): numbers, and the known slow open on Android Chrome - [On-disk format](https://github.com/2002Bishwajeet/pglite-cipher/blob/main/FORMAT.md)