Personal CLI utility tool to easily encrypt and decrypt files in a directory.
🔒 locksey 🔒
Personal CLI utility tool to easily encrypt and decrypt files in a directory. Can be used to encrypt secrets in a repo, MFA recovery codes, password text files, your journal/diary entries or any text file with personal or confidential information.
How does it work?
If you want a file in a directory to work with locksey, you name the file with ending with
.unlocked.*extension. When you run
locksey lock <password>, it will recursively find all
.unlocked.*files, encrypt them and rename them to
Similarly when you run
locksey unlock <password>, it will recursively find all
.locked.*files, decrypt them and rename them to
You can also tell locksey to store the password in you home folder so you don't have to type it again.
Files are encrypted as described in this stackoverflow post.
python3 -m pip install locksey
python3 -m locksey [-h] action [password]
|lock||Recursively go through the directory encrypt and rename files matching glob
|unlock||Recursively go through the directory and decrypt and rename files matching glob
|setpasswd||Store password for current directory in home folder (
|rmpasswd||Remove stored password for current directory|
For changing the password in you current directory, run
lockwith new password
setpasswdwith new password if needed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.