Skip to main content

locknotey

Simple script that stores encrypted data within itself and allows you to modify it using any editor.

Description

I was a long-time user of LockNote, but there was no native version of it when I switched to linux. This is my attempt to re-create that functionality in a Python script.

Installation

Install locknotey as follows:

pip install locknotey

Usage

Use locknotey as follows:

  1. Make a separate copy of the locknotey script file for anything you want to store securely using the command locknotey --new /path/to/my/note_file. For example, I store all my online account information in a copy called passwords. You can store this script file anywhere you like.
  2. Execute the new script file. (I assume you have Python and the requisite supporting modules since you installed this using pip.)
  3. A blank editor window should appear. The editor that's used is specified by your EDITOR environment variable. (You could also use the option -e "editor_cmd arg1 arg2..." to select another editor.)
  4. Put whatever you want into the editor, for example login names/passwords or names of criminal associates.
  5. Save and quit the editor. Then you will be asked for a password to encrypt the text after which the ciphertext will be stored within the script file.
  6. To see what you've stored, execute the script file again. You'll be asked for a password after which the encrypted text will be decrypted and displayed in an editor window. From there you can search and/or modify the text and store it back into the script file with the same or a new password.

If you have an existing locknotey file and want to update its code to the latest version while retaining the encrypted data, use the command locknotey -u /path/to/existing/note_file.

FAQ

Is it secure?

The file itself is as secure as the Python cryptography module will allow. Probably the weakest point is when the unencrypted text is being handled in the editor. Somebody who had access to your system might be able to get the clear text from the editor process. So don't use locknotey to store your nuclear launch codes.

Will it accidentally eat all my passwords?

It's alpha so it might. I still keep a copy of my passwords in another encrypted file. I'll trust it more once I've gotten to a higher release than 0.1.

Metadata

Release files for locknotey 0.2.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 locknotey 0.2.0
File Size Uploaded Provenance Actions
locknotey-0.2.0.tar.gz 17.7 kB Without provenance Details for locknotey-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for locknotey 0.2.0
File Interpreter ABI Platform Actions
locknotey-0.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for locknotey-0.2.0-py2.py3-none-any.whl

Total release size: 25.3 kB

Release files / locknotey-0.2.0.tar.gz

Download URL locknotey-0.2.0.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b32d0458825b3242f39db2ab9fd9bde2b0843ae31ac8572492d49fcd5c1931cf
BLAKE2b-256 checksum
How to use checksums
ae141ad559804137e4bcf7a7f8d61896defd07d533942e7c6ed2a78907b534bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release files / locknotey-0.2.0-py2.py3-none-any.whl

Download URL locknotey-0.2.0-py2.py3-none-any.whl
Size 7.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
bd1f6af2644e50efa075a847a60250f7122a4f17facb74732af9d2cdfeabd785
BLAKE2b-256 checksum
How to use checksums
7aec7387f5c13b88bb52e7f2f0791b422f06160571e1bff13dd0b73324fd7b63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Security for locknotey 0.2.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.2.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