sprig-aes
Library and CLI to encrypt and decrypt text using AES CBC mode.
Note that the implementation is ported from:
- http://masterminds.github.io/sprig/crypto.html#encryptaes
- http://masterminds.github.io/sprig/crypto.html#decryptaes
Installation
Typical installation using pip:
pip install sprig-aes
This will install the sprig_aes library and sprig-aes CLI.
Note that as per version 0.6.0, users may install self-contained Python zipapps (CLI-only) using the following command:
pip install shiv
make zipapp
mv sprig-aes.pyz ~/.local/bin/sprig-aes
Using The Library
from sprig_aes import sprig_encrypt_aes
from sprig_aes import sprig_decrypt_aes
key = "6Jsv61H7fbkeIkRvUpnZ98fu"
enc_text = sprig_encrypt_aes("a secret message", key)
dec_text = sprig_decrypt_aes(enc_text, key)
Using The CLI
Encrypt/decrypt simple string:
enc_text=$(sprig-aes encrypt 'a secret message' --key 6Jsv61H7fbkeIkRvUpnZ98fu)
sprig-aes decrypt "$enc_text" --key 6Jsv61H7fbkeIkRvUpnZ98fu
Encrypt/decrypt contents of a file:
sprig-aes encrypt-file /path/to/file --key 6Jsv61H7fbkeIkRvUpnZ98fu > /path/to/encrypted-file
sprig-aes decrypt-file /path/to/encrypted-file --key 6Jsv61H7fbkeIkRvUpnZ98fu
Metadata
Release files for sprig-aes 0.7.0
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 |
|---|---|---|---|---|
| sprig_aes-0.7.0.tar.gz | 14.0 kB | Without provenance | Details for sprig_aes-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sprig_aes-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for sprig_aes-0.7.0-py3-none-any.whl |
Total release size: 26.0 kB
Release files / sprig_aes-0.7.0.tar.gz
| Download URL | sprig_aes-0.7.0.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93e3a7d8beb7f76a426d477d023b48ea5005b0f0d3dc8b9547d80d2cccde2a35
|
|
BLAKE2b-256 checksum How to use checksums |
0828a4722fbe03f62672fbf65babbfcb537ae0a842f7c6351ee4e4a72cd0232e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / sprig_aes-0.7.0-py3-none-any.whl
| Download URL | sprig_aes-0.7.0-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
033c96ab888a0ab1b6b3d6091afa8cacf7b7b25b44fe257a4a45482317c8c3e5
|
|
BLAKE2b-256 checksum How to use checksums |
306175dd99a5744cdebd591cb68b499738738c7e73e9d6196690df32d079ec77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for sprig-aes 0.7.0
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.