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
- click
- pycryptodomex
- pywin32 on Windows
Contents
netlink.crypt.enigmanetlink.crypt.denigmaencrypt_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file netlink-crypt-0.0.1.tar.gz.
File metadata
- Download URL: netlink-crypt-0.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.10 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e7b9d5281793a8a15ac8323efbcc9c2e2893abe12357cc26b1149e0f184bc41
|
|
| MD5 |
f9f1cb2098078261f9e3f3616763a957
|
|
| BLAKE2b-256 |
f41a75cc2a8a28854c05c201129f4b75fd2fc88fa78643facc9805e51db689f0
|
File details
Details for the file netlink_crypt-0.0.1-py3-none-any.whl.
File metadata
- Download URL: netlink_crypt-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.10 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
857b80b9b3c7ce531f8676686e1162010ddce0f0e75ce8da814e41545e036e6c
|
|
| MD5 |
570b2633b4b2835dec8b8e60872de1b4
|
|
| BLAKE2b-256 |
dacd955b196bfb007dd44be14fd027ed446926a85af7324a34a22efca1755c85
|