PCS - P7MJ's enCryption System
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-28 17:52:04 -04:00
__pycache__ A-4-i Suite 2026-08-28 17:49:29 -04:00
old Organization & README 2026-08-28 17:52:04 -04:00
idea.txt A-4-i Suite 2026-08-28 17:49:29 -04:00
LICENSE Initial commit 2026-03-24 18:27:05 -04:00
pcs-a-4-i-suite.py A-4-i Suite 2026-08-28 17:49:29 -04:00
README.md Organization & README 2026-08-28 17:52:04 -04:00
readme.txt A-4-i Suite 2026-08-28 17:49:29 -04:00

PCS A-4-i "Suite" — P7MJ's enCryption System

PCS is a secure, lightweight Python utility to encrypt and decrypt any type of file readable in binary — archives, pictures, movies, code, programs, anything. The A-4-i "Suite" wraps PCS together with ZtWAV, a file-to-WAV camouflage tool, behind one keyboard-driven terminal interface.

🔤 Introduction

PCS is the standard encryption program for BUGPy-mOS. This version — A-4-i "Suite" — is a full rethink of the interface: instead of typed commands, you get an interactive, single-keypress menu app that integrates two tools:

Tool Purpose
PCS Password-encrypt any file into a .p7c_enc archive, and decrypt it back.
ZtWAV Camouflage a binary file (e.g. a .p7c_enc) inside a .wav audio file, and pull it back out.

Everything is driven from the keyboard — no pressing Enter for menu choices, no ambiguous prompts. Cross-platform, with only one pip dependency.

🧩 Features

  • Keyboard-driven menus — every menu choice registers on a single keypress, like a real CLI app.
  • No-ambiguity form-based flow — set your Target, Output, and Password; flip toggles like Use Key and Delete Original; then press [x] Execute when ready.
  • Backwards Compatibility mode — emit or expect older PCS file conventions (A-1-i, A-2-i, A-3-ii) with a couple of keystrokes.
  • File listing built right in — press [l] in any menu to see the files and folders in the current directory.
  • Strong crypto — PBKDF2HMAC (SHA-256) with 480,000 iterations, a unique random 16-byte salt per operation, and Fernet.
  • Salt stored inline or in a keyfile — keep the salt inside the .p7c_enc or split it out into a .p7c_key keyfile.
  • Tamper/error detection — Fernet refuses to decrypt corrupted, tampered-with, or wrongly-keyed data.
  • Automatic cleanup — optionally delete the original (and keyfile) after success.
  • ZtWAV integration — turn .p7c_enc (or any binary) into a .wav of raw 8-bit mono static at 8000 Hz, and decode it back.

Tip

The security of your archives depends on your password! There is no limit to its length or complexity, so use at least 12 characters with symbols and numbers to make brute-forcing impractical.

🛠️ Installation and Dependencies

Requires Python 3.x and the cryptography library (the only pip dependency). ZtWAV uses only the standard library.

pip install cryptography

Then run the suite:

python3 pcs-a-4-i-suite.py

🧑‍💻 Usage

Main menu

PCS A-4-i "Suite"
[1] Encrypt PCS
[2] Decrypt PCS
[3] Encrypt ZtWAV
[4] Decrypt ZtWAV

[q] Exit        [l] List Files
[c] Credits     [h] Help

Press 1–4, q, l, c, or h. Choices register immediately — no Enter required.

Note

If your terminal can't do raw single-keypress input (e.g. piped/redirected stdin), the app automatically falls back to typing a choice and pressing Enter.

PCS Encrypt / Decrypt modes

Both share the same form-style layout (shown here for encryption):

PCS - Encryption Mode
[1] Target: N/A
[2] Output: N/A
[3] Password: N/A
[4] Use Key: No
[5] Delete Original: Yes
[6] Backwards Compatibility: N/A

[x] Execute    [q] Cancel Operation
[l] List Files [h] Help

Press [1-6], [x] or [q/l/h]
  • [1] Target — the file to encrypt/decrypt. On encrypt, Output auto-fills as Target.p7c_enc. On decrypt, targeting file.p7c_enc auto-fills Output as file.
  • [2] Output — where the result is written. Override it if you want.
  • [3] Password — typed hidden with getpass. Required before you can Execute.
  • [4] Use Key — toggles storing the salt in a separate .p7c_key keyfile instead of inside the file. Flips No↔Yes on press.
  • [5] Delete Original — toggles removing the source (and keyfile) on success. Defaults to Yes.
  • [6] Backwards Compatibility — opens a version picker (see below).
  • [x] Execute — runs the operation with the current settings. Nothing runs until you press this.
  • [q] Cancel Operation — return to the main menu.

ZtWAV Encrypt / Decrypt modes

ZtWAV - Encryption Mode
[1] Target: N/A
[2] Output: N/A
[4] Delete Original: Yes

[x] Execute    [q] Cancel Operation
[l] List Files [h] Help
  • On Encrypt, targeting a file auto-fills Output as Target.wav.
  • On Decrypt, targeting a .wav auto-fills Output as Target.p7c_enc.
  • Otherwise the same form-based flow and [x] Execute apply.
  • ZtWAV's note: Timestamp/spacing follows the same 2-line breathing room between menus as PCS.

Warning

DO NOT PLAY the generated WAV files at high volume. They are raw white noise/static — loud playback can damage your hearing and, in some cases, high-frequency speakers.

Backwards Compatibility mode

Press [6] in a PCS mode to choose which version's file conventions to emit or expect:

Backwards Compatibility
  [4] Native A-4-i (default, per-file .p7c_key)
  [3] A-3-ii (keyfile named key.p7c_key)
  [2] A-2-i (keyfile named key.p7c_key, zip-friendly)
  [1] A-1-i (no keyfiles, salt always inline)
  [q] Cancel:
Mode Keyfile behavior
A-4-i (native) Keyfile is named after the output, e.g. file.p7c_enc → file.p7c_enc.p7c_key.
A-3-ii Keyfile is named key.p7c_key (A-3-ii's default).
A-2-i Keyfile is named key.p7c_key (A-2-i hardcodes this).
A-1-i No keyfiles — the salt is always stored inline in the .p7c_enc. Use Key is forced off.

This mode affects PCS only; ZtWAV's format is identical across all versions, so no toggle is needed there.

🔁 Cross-version compatibility

The underlying crypto — PBKDF2HMAC (SHA-256, 480k iterations, 16-byte salt) + Fernet — is identical across A-1-i, A-2-i, A-3-ii, and A-4-i. The on-disk layout is the same; only naming differs. So files are interchangeable between versions as long as you follow the naming conventions:

  • No-keyfile files (salt + data inline): fully compatible across A-1-i, A-2-i, A-3-ii, and A-4-i.
  • Keyfile files:
    • A-2-i and A-3-ii always expect the keyfile to be named key.p7c_key — use the A-2-i / A-3-ii Backwards Compatibility mode (or rename the keyfile yourself) to read/write these.
    • A-4-i native keyfiles are named per-output; older versions won't find them unless renamed to key.p7c_key.
  • A-1-i never uses keyfiles — its files are always the inline-salt form.

Tip

For best cross-version interoperability, prefer the A-2-i / A-3-ii Backwards Compatibility mode (keyfile named key.p7c_key) when you expect to move files between PCS versions.

⁉️ FAQ

It says file not found / the operation failed

  • Make sure your Target file is in the same directory as the script and you run the script from that folder.
  • Check that the filename is spelled exactly right.
  • If you enabled Use Key, the matching .p7c_key must be present to decrypt — and it must be the one that was generated at encryption time.

Will you make a GUI?

No. The whole point of the A-4-i is a clean, fast terminal experience. If you're keen to build one yourself, this project is FOSS — clone it and go for it.

🏅 Credits

P7MJ Original. ZtWAV originally by P7MJ.

Tip

Feel free to contribute! This project is FOSS.