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
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.3.0.tar.gz
(13.5 kB
view hashes)
Built Distribution
sprig_aes-0.3.0-py3-none-any.whl
(11.9 kB
view hashes)
Close
Hashes for sprig_aes-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2572a0bf69a5cae23e717a090dfb8d1bd823d80f5936ea919b55bf531f0c0525 |
|
MD5 | f8605f8714f477e48fe8aa6d01844204 |
|
BLAKE2b-256 | 3d7896fd709573fdd947cf58c0b8dcde9561e95c54ecd48a222baaafc64662a1 |