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.
Metadata
Release files for netlink-crypt 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| netlink-crypt-0.0.1.tar.gz | 3.5 kB | Without provenance | Details for netlink-crypt-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| netlink_crypt-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for netlink_crypt-0.0.1-py3-none-any.whl |
Total release size: 7.7 kB
Release files / netlink-crypt-0.0.1.tar.gz
| Download URL | netlink-crypt-0.0.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e7b9d5281793a8a15ac8323efbcc9c2e2893abe12357cc26b1149e0f184bc41
|
|
BLAKE2b-256 checksum How to use checksums |
f41a75cc2a8a28854c05c201129f4b75fd2fc88fa78643facc9805e51db689f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.10 Windows/10
|
Release files / netlink_crypt-0.0.1-py3-none-any.whl
| Download URL | netlink_crypt-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
857b80b9b3c7ce531f8676686e1162010ddce0f0e75ce8da814e41545e036e6c
|
|
BLAKE2b-256 checksum How to use checksums |
dacd955b196bfb007dd44be14fd027ed446926a85af7324a34a22efca1755c85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.10 Windows/10
|
Security for netlink-crypt 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.