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.5.0.tar.gz
(13.5 kB
view hashes)
Built Distribution
sprig_aes-0.5.0-py3-none-any.whl
(11.8 kB
view hashes)
Close
Hashes for sprig_aes-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6f0b00721de1a24bef50fd654244b25a74eef79f86be82db3117f0cb53f384b |
|
MD5 | b6ad6ce5bc429485893da819646fef23 |
|
BLAKE2b-256 | ba8de9697edd3fda713ec590cfea78326fcbcce5b8de9423569698124ea277da |