Skip to main content

Command line tool and Python library for data encryption

Project description

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

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

matrioska-0.0.1.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

matrioska-0.0.1-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

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