OPEN FORMAT · CLI · VS CODE · CROSS-PLATFORM

Protect Your Data
with Open Standards

A simple, secure, cross-platform tool to encrypt and decrypt any file, such as text, CSV, or JSON, using an open, documented format designed for automation.

Note: encrypted files do not contain their decryption key. You need the matching key, or the password if the file was locked with one.

◇

Strong Security

AES-256-GCM authenticated encryption

▱

Open & Transparent

Versioned format and documented specification

‹/›

Developer Friendly

CLI, VS Code extension, and script integration

▣

Cross-Platform

Node.js on Windows, macOS, Linux, and servers

✓

Security Focused

Tests, versioning, and security guidance

Designed for
Your Environment

▦

Windows10 / 11

●

macOSIntel & Apple Silicon

🐧

Linuxx86-64 / ARM64

JS

Node.jsv20 or newer

⌘

Command-Line Interface

One command to lock or unlock a file, with a key or a password.

$ npx baronglock notes.txt
$ npx baronglock notes.txt --password
$ npx baronglock notes.baronglock

Available on npm. Requires Node.js 20 or newer.

Read documentation →
▤

File Format

.blj

BarongLock Container

A versioned encrypted format with authentication to detect data tampering.

Extensions: .baronglock or the short form .blj. Both are the same format.

Read specification →
↓

Get Started

Use Node.js and npm/npx. No extra runtime dependencies are required.

git clone https://github.com/sibernaga/baronglock.git
cd baronglock
npm test
View GitHub Repository ↗

VS CODE EXTENSION

Edit locked files
right in VS Code

Click a .blj or .baronglock file and it opens as normal text. Save, and it is locked again. The file on disk is never left unlocked.

  • Open locked files with one click
  • Every save locks the file again, the same way
  • Lock any file from the Explorer, with a key or a password
  • Also for Cursor and VSCodium, through Open VSX
code --install-extension sibernaga.baronglock-vscode

Found a .baronglock or .blj file?

Visit the repository and documentation to learn how to open it. You will still need the matching key or its password, or authorized access to a key-management service.

How to Unlock