Skip to content

Plugin Encrypted Project

Hiromichi Yokoyama edited this page Oct 19, 2026 · 5 revisions

Plugin: Encrypted Project

Encrypted Project provides password-protected, authenticated AES-128 encryption for MoleditPy project files (.pmeenc), ensuring proprietary molecular designs and confidential research data remain secure on disk.

Repository Bundled in moleditpy-plugins (plugins/Encrypted_Project)
Author HiroYokoyama
Supported OS Windows, macOS, Linux, WSL
Supported Python >=3.9, <3.15
Supported MoleditPy >=5.0.0, <6.0.0
First-party plugin license LGPL-3.0-or-later
Menu location File ▸ Export ▸ Export Encrypted (.pmeenc)... (also transparently opens .pmeenc files)
Extra dependencies cryptography

See Official Plugins for the full catalogue.


1. Security Architecture & Features

  • Fernet encryption standard: Employs AES-128 in CBC mode with PKCS7 padding and HMAC-SHA256 authentication to guarantee confidentiality and tamper resistance.
  • Key derivation: Passwords are stretched into encryption keys using PBKDF2HMAC with SHA-256 and 100,000 iterations alongside a cryptographically secure 16-byte random salt stored in the file header.
  • Seamless save interception: When a project is loaded from or exported to a .pmeenc file, pressing standard Ctrl+S (File ▸ Save Project) will automatically re-encrypt and update the file using the active session key without prompting for the password again.
  • Drag-and-drop & file association: .pmeenc files can be opened via drag-and-drop or standard open dialogs, triggering a password prompt before decrypting the model into memory.
  • Memory security & clean reset: Clearing or resetting the document wipes the derived key and salt from memory.

2. File Format Structure (.pmeenc)

The exported .pmeenc file is encoded in JSON format with base64 components:

{
  "version": 1,
  "salt": "<base64-encoded 16-byte salt>",
  "encrypted_data": "<base64-encoded Fernet token (IV + AES-128 ciphertext + HMAC)>"
}

3. Typical Workflow

  1. Select File ▸ Export ▸ Export Encrypted (.pmeenc)....
  2. Enter a strong password when prompted.
  3. Save the .pmeenc file to disk.
  4. Subsequent Ctrl+S commands will transparently overwrite and encrypt the file during your session.
  5. To reopen, drag the .pmeenc file into MoleditPy and enter your password.

Usage notes

Encrypted project saves preserve the existing file if writing fails. Loading checks decrypted project data and supports up to 64 MiB of plaintext.


4. See also


This page documents Encrypted Project v2026.10.19, and was last updated on 2026-10-19. See REGISTRY/plugins.json for the current version.

Clone this wiki locally