Skip to main content

matrioska

Command line tool and Python library for data symmetric encryption

Features

  • Generate a random (base64 encoded) 32 bytes passphrase (for AES256)
  • Key provided via environment variable name (to avoid command line exposure)
  • Encrypts from stdin or filename into stdout/filename
  • Decrypts from stdin or filename into stdout/filename

The encryption is performed using AES-256 in EAX mode via the PyCryptodome library.

Install

pip install matrioska

Usage

# Generate a random encryption key and story in an environment variable
export KEY=$(matrioska --gen-key)

# Encrypt stdin
echo "This is a very secret sentence" | matrioska -k KEY > /tmp/secret

# Decrypt stdin
cat /tmp/secret | matrioska -k KEY -d

# Encrypt file omitting both source and destioname filenames from command line
matrioska -k KEY < /etc/passwd > /tmp/secret_file

# Decrypt file omitting both source and destioname filenames from command line
matrioska -k KEY -d < /tmp/secret_file > /tmp/secret

Metadata

Release files for matrioska 0.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 matrioska 0.0.1
File Size Uploaded
matrioska-0.0.1.tar.gz 6.6 kB Details

Built distribution (wheel)

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

Total release size: 12.3 kB

Release files / matrioska-0.0.1.tar.gz

Download URL matrioska-0.0.1.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
962e09c317f1d4693c6cdad31ea2ddbbd5da5b3707cdf8150200c2c579f6af51
BLAKE2b-256 checksum
How to use checksums
02cf812b240d723d0fb7ccbf323425e407b4584c12ec303dc9314dcdb3866128
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

Release files / matrioska-0.0.1-py3-none-any.whl

Download URL matrioska-0.0.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a931612e4ac78b3dd71a87cb19f78aa0e8ac2e1f8838273d37ee35473c3426e5
BLAKE2b-256 checksum
How to use checksums
15db12807442d4b612aa5773a88f560bc19975aa2370d2a380a5ca4ddca76fe3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

Release history Release notifications | RSS feed

This release

0.0.1 This release

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