Skip to main content

PyJournal

An encrypted, password-protected terminal journal written in Python and distributed through PyPI.

  • PyPI: pyjournaling
  • Install: pipx install pyjournaling
  • Command: pyjournal

Features

  • Local encryption at rest using Fernet authenticated encryption
  • Password-based key derivation with PBKDF2-SHA256
  • Random master key that is stored only in encrypted form
  • One-time recovery code for resetting a forgotten password
  • Password changes without re-encrypting every journal entry
  • Rich terminal interface with built-in and custom themes
  • Entry creation, reading, counting, and password-confirmed deletion
  • Cross-platform data directory under ~/.pyjournal/

Security model

password       -> PBKDF2-SHA256 -> wrapping key -> decrypts master key
recovery code  -> PBKDF2-SHA256 -> wrapping key -> decrypts master key
                                                     |
                                                     v
                                            encrypts journal entries

PyJournal stores salts, a password-verification hash, and encrypted copies of the master key in ~/.pyjournal/.env. The plaintext master key is not written to disk by the application. Journal confidentiality therefore depends on the strength of the password or recovery code and the security of the local computer. PyJournal has not undergone an independent security audit and should not be treated as a replacement for professionally audited secret-management software.

Installation

pipx install pyjournaling
pyjournal

Upgrade an existing installation with:

pipx upgrade pyjournaling

Development setup

git clone https://github.com/Tystr12/PyJournal.git
cd PyJournal
python -m venv .venv

Activate the environment:

# macOS/Linux
source .venv/bin/activate

# Windows PowerShell
.venv\Scripts\Activate.ps1

Install and run the project:

pip install -r requirements.txt
python journal.py

Usage

pyjournal                   # launch the journal
pyjournal --reset-password  # recover access using the recovery code

On first launch, PyJournal asks you to create a password and displays a recovery code once. Store the recovery code somewhere safe. If both the password and recovery code are lost, the journal entries cannot be recovered.

Menu options

Option Action
1 Create a journal entry
2 Read previous entries
3 Exit
4 Show all options
5 Change password
6 Change display name
7 Delete an entry
8 About PyJournal
9 Change theme

Data location

All user data is stored under ~/.pyjournal/:

File Contents
.env Salts, verification hash, preferences, and encrypted master-key blobs
something.txt Encrypted journal entries
saves.txt Entry count

Set JOURNAL_DOTENV_PATH to use a different configuration and data location.

Technology

  • Python
  • cryptography and Fernet
  • PBKDF2-SHA256
  • bcrypt
  • Rich
  • python-dotenv

License

Licensed under the MIT License.

Metadata

Release files for pyjournaling 1.0.1

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

Source distribution (sdist)

Source distribution for pyjournaling 1.0.1
File Size Uploaded Provenance Actions
pyjournaling-1.0.1.tar.gz 12.6 kB Without provenance Details for pyjournaling-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 23.8 kB

Release files / pyjournaling-1.0.1.tar.gz

Download URL pyjournaling-1.0.1.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ccdd4b65f05d3b7dd33d66edc7ec9a89aaf50d81dfbe0dc5eece53171c219321
BLAKE2b-256 checksum
How to use checksums
1771d53203b120b59db06fab0cd1a2f0adf3f0d60c5c57b443f69eb564abdd88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / pyjournaling-1.0.1-py3-none-any.whl

Download URL pyjournaling-1.0.1-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7ddce61dba6da4d9e60b59216dd5497df8e3c45426d62783d6a3330d889d85f
BLAKE2b-256 checksum
How to use checksums
0f354b33c71add5720aa38715855b958c4fd5ddea92036e5a7e882daba1c6930
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for pyjournaling 1.0.1

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

1.0.1 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