No project description provided
Project description
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
pip install sprig-aes
Using The Library
from sprig_aes import sprig_encrypt_aes
key = "6Jsv61H7fbkeIkRvUpnZ98fu"
enc_text = sprig_encrypt_aes("a secret message", key)
dec_text = sprig_decrypt_aes(enc_text, key)
Using The CLI
sprig-aes encrypt 'a secret message' --key 6Jsv61H7fbkeIkRvUpnZ98fu
sprig-aes decrypt 'zLBGM41dAfA2JuIkVHRKaxydwr8+IClmaf69wqQgAd8=' --key 6Jsv61H7fbkeIkRvUpnZ98fu
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
sprig-aes-0.4.0.tar.gz
(13.6 kB
view hashes)
Built Distribution
sprig_aes-0.4.0-py3-none-any.whl
(11.9 kB
view hashes)
Close
Hashes for sprig_aes-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40f57da6cf9454edde65ef94935eee4571f9381708eff724634e841f50cf2495 |
|
MD5 | 9deda446c4fcbac3eb7d63b5b831bbff |
|
BLAKE2b-256 | 9f80e8c8fb875ccafc7b04368892c7225eb55f6683e6ab853a78d3e86534d043 |