Skip to content

How ClipVault Encrypts Your Clips and Vault

Published:
6 min read

Storing sensitive clipboard history alongside a password vault on a mobile device demands a layered cryptographic architecture. While clipboard items must remain accessible to the on-screen keyboard as you type, high-value vault secrets like master logins and payment cards must stay locked behind an authenticated master key. I built ClipVault with a two-tier encryption hierarchy: an always-encrypted SQLCipher database for clipboard history and an individually authenticated AES-256-GCM envelope for vault secrets.

Key takeaways

The Two-Tier Storage Architecture

A password vault and a clipboard manager have fundamentally different availability requirements. If a clipboard database locked completely whenever the screen turned off, an on-screen keyboard would be unable to store new clips when copying text. Conversely, storing passwords in an unlocked SQLite table exposes credentials to memory-scraping attacks.

To resolve this conflict, I separated storage into two distinct cryptographic tiers:

Diagram showing two key derivation chains: PBKDF2 to AES-256-GCM for vault items and SecureRandom to SQLCipher for clips.
Figure 1: ClipVault two-tier key derivation and database encryption hierarchy.

Tier 1: Encrypted Clips Database at Rest

Clipboard history is stored in a local Room SQLite database managed by SQLCipher 4.6.1. SQLCipher encrypts every page of the database file on disk using 256-bit AES-CBC.

Rather than prompting you for a database password on every copy, the database encryption key is generated at initial setup using SecureRandom. This 256-bit raw hex key is wrapped and protected inside the hardware-backed Android Keystore. When the application initializes, the key is unwrapped and supplied directly to SQLCipher, bypassing SQLCipher’s internal key derivation function (KDF) to ensure rapid database opens.

Tier 2: Authenticated Vault Item Encryption

The vault tier stores high-risk credentials, including website logins, TOTP two-factor secrets, payment cards, secure notes, identities, and Wi-Fi configurations.

Every vault record is encrypted individually using AES-256-GCM with a 12-byte random initialization vector (IV) and a 128-bit authentication tag. This authenticated encryption mode ensures that ciphertext cannot be modified or tampered with without immediate detection.

All vault records are encrypted under a single Vault Master Key (VMK). The VMK itself is encrypted at rest using a Key Encryption Key (KEK) derived from your master passphrase using PBKDF2-HMAC-SHA256 configured with:

Biometrics as a Convenience Shortcut

ClipVault supports optional Class 3 biometric unlocking via fingerprint or face recognition. However, biometrics do not replace your master passphrase.

When you enable biometric unlock, the application wraps a copy of the VMK and stores it inside the Android Keystore with biometric authorization constraints. When you scan your fingerprint, Android Keystore unwraps the VMK directly into memory.

You must still retain your master passphrase: it is strictly required to decrypt manual backup files, restore data to a new device, and access core recovery settings.

Memory Hygiene and Screen Protections

Cryptographic safety is meaningless if keys or plaintext passwords remain exposed in memory or leak through operating system interfaces:

Built-In Vault Utilities and Migration

The vault includes several offline productivity tools designed to operate without remote server calls:

What Is Not Protected

Honest security engineering requires clearly defining what an application cannot protect against:

Summary

ClipVault balances daily convenience with strong cryptographic hygiene by pairing an always-available, encrypted SQLCipher database for clipboard history with an authenticated AES-256-GCM vault layer derived from 600,000 PBKDF2 iterations. To explore the app and its verified permissions, visit the ClipVault product page, check how ClipVault saves your clipboard on Android 10+, or follow our guide on how to verify an Android app has no internet access.


You might also like

Article

How to Verify an Android App Has No Internet Access

Step-by-step guide to verifying that an Android application has zero network access using ADB commands, aapt inspection, and cryptographic APK checks.

Product

ClipVault

Open-source, fully offline clipboard manager and encrypted password vault for Android. No INTERNET permission, and you can verify that yourself.

Note

A lost ClipVault passphrase can't be recovered

Why zero-knowledge architecture means a lost master passphrase cannot be reset.