Skip to main content

Password Storage for Automation

Project description

netlink-crypt

Tools to encrypt passwords used for automation.

The keys used depend on the current user and the actual machine.

Installation

Use your preferred python package manager (I use Poetry).

Dependencies

Contents

  • netlink.crypt.enigma
  • netlink.crypt.denigma
  • encrypt_secret

netlink.crypt.enigma

from netlink.crypt import enigma

encrypted = enigma('secret sauce')

netlink.crypt.denigma

Using bytes:

from netlink.crypt import denigma

s = denigma(b'\xa2\x1c-\x8d\x19\xaa5"o\xfc&\x1e\xbc\xe5\xfe\x9e')

or using base64 encoded string:

from netlink.crypt import denigma

s = denigma('ohwtjRmqNSJv/CYevOX+ng==')

or using a list of integers (toml):

from netlink.crypt import denigma

s = denigma([162, 28, 45, 141, 25, 170, 53, 34, 111, 252, 38, 30, 188, 229, 254, 158])

encrypt_secret

Utility script to encrypt. Output can be

  • bytes
  • toml
  • b64
Usage: encrypt_secret [OPTIONS] VALUE

  Encrypt VALUE using current user and machine to determine keys.

Options:
  -o, --output-format [toml|b64]  Bytes by default.
  --help                          Show this message and exit.

Binaries created with PyIstaller available at netlink-crypt/dist

License

MIT License

Changes

0.0.1

Limit numerical uid in linux to prevent memory overflow.

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

netlink-crypt-0.0.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

netlink_crypt-0.0.1-py3-none-any.whl (4.2 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