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 details)

Uploaded Source

Built Distribution

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

netlink_crypt-0.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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