Skip to content

huxinran2025-hash/just-in-case

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Just In Case — Digital Legacy Vault

What happens to your passwords when you're gone?

App Store Website License

Military-grade encrypted vault · 5-level Dead Man's Switch · Shamir Secret Sharing


🔐 What is Just In Case?

Just In Case is a digital legacy and estate planning app that ensures your passwords, crypto wallets, documents, and final messages reach the right people — automatically — when the time comes.

The average person has 100+ online accounts. When you die or become incapacitated, every single one becomes a locked door with no key. Your family spends months fighting with customer support, submitting death certificates, and navigating bureaucratic nightmares.

Just In Case solves this with three innovations:

  1. Zero-Knowledge Encrypted Vault — Store everything with AES-256-GCM encryption. Even we can't read your data.
  2. 5-Level Dead Man's Switch — A progressive fail-safe that escalates from email → push → SMS → phone call before triggering.
  3. Shamir Secret Sharing — Your encryption keys are split so that no single heir can access your vault alone.

⚡ Key Features

🔒 Encrypted Vault

Feature Details
Encryption AES-256-GCM with PBKDF2 key derivation
Architecture Zero-knowledge — server never sees plaintext
Authentication Face ID / Touch ID biometric
Storage Passwords, documents, photos, notes

⏰ 5-Level Dead Man's Switch

Level 1 → Email reminder          (configurable timing)
Level 2 → Push notification       (escalation)
Level 3 → SMS alert               (urgent)
Level 4 → Automated phone call    (critical)
Level 5 → Vault delivery to heirs (final trigger)

At each level, you can respond and reset the timer. Only complete silence across ALL 5 levels triggers the final delivery. This prevents false alarms from vacations, hospital stays, or simply forgetting.

👥 Heir Management

  • Designate unlimited heirs with different access levels
  • Shamir's Secret Sharing (k-of-n threshold scheme) — heirs must cooperate to decrypt
  • Secure invitation via email with confirmation link
  • Priority-based delivery (primary heir first, then secondaries)

📞 Voice Testament

  • Write custom call scripts for each heir
  • Automated phone calls via Twilio when DMS triggers
  • Natural-sounding voices via Google Cloud TTS
  • Multi-language: English, Chinese, Japanese, Korean, Spanish

⏳ Time Capsules

  • Schedule messages for future delivery
  • Tie delivery to specific dates or DMS trigger
  • Perfect for birthdays, anniversaries, or milestone messages

🌐 Digital Afterlife

  • Pre-configure social media account handling
  • Instructions per platform: memorialize, delete, or post final message
  • Covers Facebook, Instagram, Twitter/X, LinkedIn

💰 Crypto Vault

  • Secure storage for wallet seed phrases
  • Shamir secret sharing for key distribution
  • Step-by-step heir recovery instructions
  • Supports Bitcoin, Ethereum, and all major chains

🏗️ Architecture Overview

┌─────────────┐     ┌──────────────────┐     ┌─────────────────┐
│  iOS App    │────▶│  Google Cloud    │────▶│  Notifications  │
│  (Flutter)  │     │  Run (Go/Gin)    │     │                 │
│             │     │                  │     │  • Twilio (SMS)  │
│  AES-256    │     │  PostgreSQL      │     │  • Twilio (Call) │
│  Encryption │     │  Cloud Storage   │     │  • SendGrid      │
│  Face ID    │     │  DMS Scheduler   │     │  • FCM (Push)    │
└─────────────┘     └──────────────────┘     └─────────────────┘
Component Technology
Frontend Flutter (iOS native)
Backend Go (Gin framework)
Infrastructure Google Cloud Run (serverless)
Database PostgreSQL with encrypted fields
Object Storage Google Cloud Storage
SMS & Voice Twilio
Email SendGrid
Push Notifications Firebase Cloud Messaging
Payments RevenueCat (App Store subscriptions)
Encryption AES-256-GCM, PBKDF2, Shamir SSS

🔬 Security Model

Encryption at Rest

  • All vault items encrypted with AES-256-GCM before leaving the device
  • Key derivation via PBKDF2 with device-specific salt
  • No plaintext ever stored on server

Encryption in Transit

  • TLS 1.3 for all API communications
  • Certificate pinning on iOS client

Key Management

  • Master key derived from user's biometric + device keychain
  • Shamir's Secret Sharing splits the key into n shares (threshold k required to reconstruct)
  • Individual shares distributed to designated heirs

Zero-Knowledge Architecture

  • Server stores only encrypted blobs
  • Server has no access to encryption keys
  • Even database breach reveals only ciphertext

Threat Model

Threat Mitigation
Server compromise Zero-knowledge — no plaintext on server
Single heir collusion Shamir threshold — k heirs required
False DMS trigger 5-level escalation over days/weeks
Man-in-the-middle TLS 1.3 + certificate pinning
Device theft Biometric + device keychain

📱 Download

Free tier available — 1 heir, basic vault, 3-level DMS

Premium ($99 lifetime) — Unlimited heirs, full vault, 5-level DMS, Voice Testament, Time Capsules, Crypto Vault, Digital Afterlife


❓ FAQ

How is Just In Case different from a password manager?

Password managers store your passwords but don't solve the inheritance problem. When you die, your family can't access your password manager either (master password + 2FA). Just In Case adds a Dead Man's Switch that automatically delivers your information when you can't.

What if I just forget to check in?

The 5-level escalation system prevents false triggers. You'll receive an email, then a push notification, then an SMS, then a phone call — over days or weeks. Only if you fail to respond to ALL five levels does the switch activate.

Can you read my data?

No. Just In Case uses a zero-knowledge architecture. Your data is encrypted on your device before transmission. We never have access to your encryption keys. Even a full database breach would reveal only encrypted ciphertext.

What about crypto wallets?

Your seed phrases are stored in the encrypted vault and can be split using Shamir's Secret Sharing across multiple heirs. No single heir can access your crypto alone. The system includes step-by-step instructions for heirs who may not be crypto-savvy.

What happens if Just In Case shuts down?

We have a continuity plan that includes open-sourcing the decryption tools. Your encrypted data is stored on Google Cloud with redundant backups. The encryption is standard AES-256 — any implementation can decrypt it with the correct key.


🔗 Links


📄 License

Just In Case is a proprietary application. This repository contains documentation and security specifications — not the application source code.

© 2026 Just In Case. All rights reserved.

About

Just In Case — Digital Legacy Vault & Dead Man's Switch. Protect your passwords, crypto wallets, and digital legacy with military-grade AES-256 encryption and a 5-level fail-safe system.

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors