Skip to main content

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

Metadata

Release files for cripper 0.3.4

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

Source distribution (sdist)

Source distribution for cripper 0.3.4
File Size Uploaded
cripper-0.3.4.tar.gz 13.9 kB Details

Built distribution (wheel)

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

Total release size: 26.6 kB

Release files / cripper-0.3.4.tar.gz

Download URL cripper-0.3.4.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
158369e970a49c9e077ad6415b818938f6cf62dfa48cb30cded1ce143826c71d
BLAKE2b-256 checksum
How to use checksums
78194c6006321e3dec4b973122245a8942b5c0f8dbb724a33555105ea8c07458
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cripper-0.3.4-py3-none-any.whl

Download URL cripper-0.3.4-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb4cc181c611691bc1ad191b3cfb455f40db3f29166f079a9fde225e4aefe879
BLAKE2b-256 checksum
How to use checksums
e223dd5eea6b27a9800fe6ae8a057028767c1043608486efd4973b1d5d0abfeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.3.4 This release

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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