Skip to main content

No project description provided

Project description

Testcases

sprig-aes

Library and CLI to encrypt and decrypt text using AES CBC mode.

Note that the implementation is ported from:

  1. http://masterminds.github.io/sprig/crypto.html#encryptaes
  2. 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


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)

Uploaded Source

Built Distribution

sprig_aes-0.4.0-py3-none-any.whl (11.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page