Skip to main content

Clipboard-based file & directory encryption tool

Project description

Cripper

Clipboard-based file & directory encryption tool — encrypt/decrypt via system clipboard with AES-128-CBC (Fernet).

Install

pip install -e .

Requirements: Python >= 3.8, click, cryptography, pyperclip

Usage

cripper encrypt <path>       # file or directory → clipboard (Base64 ciphertext)
cripper decrypt <output-dir>  # clipboard → restored files

Decrypt output is written to <output-dir>/<original-name>.

Key Management

On first run, a Fernet key is auto-generated at ~/.cripper (non-Windows: chmod 600). Delete the file to regenerate a new key.

.cripperignore

Place a .cripperignore file in any directory to exclude matching files/directories when encrypting a directory tree. Patterns follow .gitignore conventions:

  • *.log — ignore all .log files (any nesting level)
  • build/ — ignore the build directory and everything inside
  • sub/*.tmp — ignore .tmp files directly inside sub/
  • Lines starting with # are comments; blank lines are skipped

Ignore files are checked recursively — a pattern in a parent directory applies to all subdirectories.

Encryption Format

Binary payload: [1B type][4B name-len (big-endian)][name (UTF-8)][content], then Fernet-encrypted, Base64-encoded.

Type Content
0x00 Raw file bytes
0x01 tar.gz archive of directory tree

Fallback

If clipboard access fails (e.g. headless environments), encrypted data is written to default.enc in the current directory.

License

Apache 2.0 — see LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cripper-0.2.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cripper-0.2.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file cripper-0.2.0.tar.gz.

File metadata

  • Download URL: cripper-0.2.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for cripper-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1ede8b484b3a53d25441ac3bca80915619fbb009514574940c9fd4a1946fd253
MD5 96ee3f482fb9b3affa08c131be5f1cc8
BLAKE2b-256 29aaa74f65d3e309a607f8d8ea89bad43da6443e9df5b94c801c39c54d80cc31

See more details on using hashes here.

File details

Details for the file cripper-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cripper-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for cripper-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50d718f883e61f78da296b907c78d4fba117231343315e71392f567c9978d8e8
MD5 8579f7d0b2ae97746e750d9f56d68bc7
BLAKE2b-256 7cec6898969da186a8a951b991fccc84564b2dbb8ab4b79d220d5c70c0e93ed3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page