Skip to content

mohdaquib/SecureVault

Repository files navigation

SecureVault 🔐

SecureVault is a sample Android app showcasing production-grade mobile security practices.

It focuses on doing security correctly — not just enabling features, but proving they work.


✨ Features

  • 🔒 Encrypted local database (Room + SQLCipher)
  • 🗝️ Keystore-backed secret protection
  • 🌐 SSL certificate pinning (OkHttp)
  • ✅ Deterministic security tests
  • 🧪 Instrumentation test proving encryption at rest
  • ⚙️ Hilt dependency injection
  • 🚀 GitHub Actions CI

🧱 Architecture

App Architecture

SecureVault 🔐

SecureVault is a sample Android app showcasing production-grade mobile security practices.

It focuses on doing security correctly — not just enabling features, but proving they work.


✨ Features

  • 🔒 Encrypted local database (Room + SQLCipher)
  • 🗝️ Keystore-backed secret protection
  • 🌐 SSL certificate pinning (OkHttp)
  • ✅ Deterministic security tests
  • 🧪 Instrumentation test proving encryption at rest
  • ⚙️ Hilt dependency injection
  • 🚀 GitHub Actions CI

🔐 Security Highlights

Encrypted Storage

  • SQLCipher encrypts the database
  • Encryption key is randomly generated
  • Key is encrypted using Android Keystore
  • Instrumentation test verifies no plaintext in DB file

Network Security

  • SSL certificate pinning using SPKI hashes
  • Pinning enforced at runtime
  • MockWebServer tests validate pin success & failure

🧪 Testing

./gradlew test
./gradlew connectedDebugAndroidTest

About

Demonstrate real-world Android security engineering

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages