Overview
VaultScan is an Android app that captures physical documents with the camera, runs on-device boundary detection and OCR, and produces an AES-256-encrypted PDF with a searchable text layer.
Features
- Document scanning via ML Kit’s document scanner (boundary detection and perspective correction)
- OCR text layer embedded invisibly into the output PDF using ML Kit text recognition
- AES-256 PDF encryption via PDFBox, with a password set per scan or configured as a default
- Secure password storage using EncryptedSharedPreferences
- Document list with multi-select and autofocus naming
- Document preview before saving
- Sharing the resulting PDF to any app via a standard Android share intent
How it works
The app is built with Jetpack Compose and Material 3, navigated with Navigation Compose. Scanning and OCR are handled by Google’s ML Kit (Document Scanner and Text Recognition APIs), running entirely on-device. The scanned pages and recognized text are assembled into a PDF with PDFBox for Android, which also applies AES-256 encryption using a password retrieved from EncryptedSharedPreferences.
