Strong Security
AES-256-GCM authenticated encryption
BarongLock®
Open EncryptionOPEN FORMAT · CLI · VS CODE · CROSS-PLATFORM
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.
AES-256-GCM authenticated encryption
Versioned format and documented specification
CLI, VS Code extension, and script integration
Node.js on Windows, macOS, Linux, and servers
Tests, versioning, and security guidance
Windows10 / 11
macOSIntel & Apple Silicon
Linuxx86-64 / ARM64
Node.jsv20 or newer
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 →A versioned encrypted format with authentication to detect data tampering.
Extensions: .baronglock or the short form .blj. Both are the same format.
Read specification →Use Node.js and npm/npx. No extra runtime dependencies are required.
git clone https://github.com/sibernaga/baronglock.git
cd baronglock
npm testVS CODE EXTENSION
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.
code --install-extension sibernaga.baronglock-vscode