Skip to main content

🔒 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 .locked.*.

  • Similarly when you run locksey unlock <password>, it will recursively find all .locked.* files, decrypt them and rename them to .unlocked.*.

  • 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.

Install

python3 -m pip install locksey

Usage

python3 -m locksey [-h] action [password]

Actions

Name Description
lock Recursively go through the directory encrypt and rename files matching glob ./**/*.unlocked.*
unlock Recursively go through the directory and decrypt and rename files matching glob ./**/*.locked.*
setpasswd Store password for current directory in home folder (~/.locksey), base64 encoded so you don't have to provide it again
rmpasswd Remove stored password for current directory

Changing password

For changing the password in you current directory, run

  1. unlock
  2. rmpasswd if needed
  3. lock with new password
  4. setpasswd with new password if needed

Metadata

Release files for locksey 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for locksey 0.1.0
File Size Uploaded Provenance
locksey-0.1.0.tar.gz 5.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for locksey 0.1.0
File Interpreter ABI Platform
locksey-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / locksey-0.1.0.tar.gz

Download URL locksey-0.1.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3ced43d38977cf84c6941509bedb835264a5f5c50c76d948e9ae64bfad317871
BLAKE2b-256 checksum
How to use checksums
f8fae51a62fddf69e308fcf0e53adf8feb9d9c64c4eceab4d78ed5fc0dcdb9b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release files / locksey-0.1.0-py3-none-any.whl

Download URL locksey-0.1.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d10453886d6e69d1cc862959cd8e05b85c18fb9c6d958c69d5ecfcdb8cfe8669
BLAKE2b-256 checksum
How to use checksums
030bf5dadb984b49075070834b06deb07b847dc93c431060265dd517a9255d14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Security for locksey 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page