Skip to content

Rynaro/lockdown

Repository files navigation

image

Lockdown

Lock your Markdown files in Obsidian

Military-grade encryption meets beautiful UX

License: MIT Version

Why Lockdown?

Secure your sensitive notes with AES-256-GCM encryption. Perfect for journals, passwords, financial info, or any private content you want to protect.

Key Features:

  • πŸ” Military-grade encryption - AES-256-GCM with PBKDF2
  • 🎨 Beautiful UI - Elegant lock overlays and modern password prompts
  • ⚑ Blazing fast - Instant lock/unlock operations
  • πŸ“ Flexible - Lock individual files or entire folders
  • πŸ”‘ Root password - Optional master password for all files

Installation

From Community Plugins (Recommended)

  1. Open Settings β†’ Community Plugins
  2. Click Browse and search for "Lockdown"
  3. Click Install, then Enable

Manual Installation

  1. Download the latest release from GitHub Releases
  2. Extract main.js, manifest.json, and styles.css to your vault's .obsidian/plugins/lockdown/ folder
  3. Reload Obsidian (Cmd/Ctrl + R or restart the app)
  4. Enable the plugin in Settings β†’ Community Plugins β†’ Enable "Lockdown"

Quick Start

Lock a File

1. Open any note
2. Cmd/Ctrl + P β†’ "Lock current file"
3. Enter password

Unlock a File

1. Click locked file
2. Click "Unlock" button
3. Enter password

Use Root Password (Optional)

Cmd/Ctrl + P β†’ "Set root password"

All future locks will use this master password.


Features

Security

  • AES-256-GCM encryption
  • PBKDF2-SHA512 key derivation (1M iterations)
  • Zero plain-text password storage
  • Session timeout for auto-locking

Functionality

  • Lock individual files
  • Lock entire folders
  • Change file passwords
  • Bulk unlock operations
  • Automatic backups

User Interface

  • Beautiful lock overlay
  • Password strength indicator
  • File explorer indicators
  • Status bar integration
  • Locked files manager

Configuration

Settings β†’ Lockdown

Setting Description Default
Lock Icon Icon for locked files πŸ”’
Use Encryption Enable AES-256 encryption βœ…
Show Status Bar Display lock status βœ…
Show File Explorer Indicators Lock icons in sidebar βœ…
Session Timeout Auto-lock after inactivity (min) 0 (off)
Enable Backup Backup before encryption βœ…

Security

Encryption Details

  • Algorithm: AES-256-GCM
  • Key Derivation: PBKDF2-SHA512 (1,000,000 iterations)
  • Salt: 128-bit random per file
  • IV: 96-bit random per encryption

What's Encrypted?

βœ… All file content and metadata
❌ File names and folder structure

⚠️ Important

If you forget your password, your data is unrecoverable. There are no backdoors or password recovery mechanisms.

Best Practices:

  • Use strong, memorable passwords (12+ characters)
  • Consider a password manager for root password
  • Keep backups of important files

Commands

Command Description
Lock current file Lock the active note
Unlock current file Unlock the active note
Toggle lock Lock/unlock current note
Set root password Set master password
Change password Change file's password
Lock folder Lock entire folder
Unlock folder Unlock entire folder
Show locked files manager Manage all locked files
Unlock all files Bulk unlock

Building from Source

git clone https://github.com/Rynaro/lockdown.git
cd lockdown
npm install
npm run build

Development mode:

npm run dev

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for guidelines.

Quick Contribution Guide

  1. Fork the repository
  2. Create feature branch: git checkout -b feature/amazing-feature
  3. Commit changes: git commit -m 'Add amazing feature'
  4. Push: git push origin feature/amazing-feature
  5. Open Pull Request

Roadmap

  • Biometric unlock
  • Sync integration
  • Custom keyboard shortcuts
  • Multi-language support
  • Inline encrypted blocks

License

MIT License - see LICENSE for details.

TL;DR: Free to use, modify, and distribute.


Acknowledgments

  • Obsidian Team - For the amazing platform
  • Contributors - Everyone who helps improve Lockdown
  • You - For trusting Lockdown with your sensitive notes

Made with ❀️ for the Obsidian community

Report Bug β€’ Request Feature β€’ Discussions

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors