Locked is a CLI tool that allows you to lock your files into self-contained .locker archives.
- AES-256-GCM Encryption: Files are encrypted using AES-256-GCM
- Password Protection: Password-based key derivation using salt (argon2)
- Self-contained:
.lockerfile contain all the metadata needed for decryption
You can install Locked via the releases page. There you will find the respective binaries for windows, linux and MacOS. It may break on MacOS, since I haven't tested it yet on that Platform.
Make sure you have Go installed on your system. Then, you can clone the repository and build the project using the following commands:
git clone https://github.com/PrathamGhaywat/locked.git
cd locked
go build -o locked . #windows users should use `go build -o locked.exe .`
# if you are on linux, you need to make it executable: chmod +x lockedYou have to rename the binary from e.g locked-windows-arm64.exe/locked-windows-amd64.exe/locked-windows-386.exe to locked.exe and then you can use it as following:
Locking:
locked.exe lock myfile.txt #creates a myfile.txt.locker file and prompts for a passwordUnlocking:
locked.exe unlock myfile.txt.locker #restores the original myfile.txt file and prompts for the password for decryptionTo lock a file:
locked lock myfile.txt #creates a myfile.txt.locker file and prompts for a passwordTo unlock a file:
locked unlock myfile.txt.locker #restores the original myfile.txt file and prompts for the password for decryptionTo get an overview of all available commands and options:
locked helpI recommend adding the locked binary (you have to give the folder path where the binary is located) to your system's PATH for easier access and also renaming the binary from e.g locked-windows-arm64.exe to just locked.exe or respective names for other platforms.