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.5.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

sprig_aes-0.5.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file sprig-aes-0.5.0.tar.gz.

File metadata

  • Download URL: sprig-aes-0.5.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for sprig-aes-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d78254c22cd5d06f48161bb278ed3e3e0e3e53a77776bbc6cd2056484047cb38
MD5 395ba62c96e0cf727f760ade474f45fb
BLAKE2b-256 e539c41097ac5987569c88a2f94c5278b4915ebccfda6a8aded14ab61ddd78fa

See more details on using hashes here.

File details

Details for the file sprig_aes-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: sprig_aes-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for sprig_aes-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6f0b00721de1a24bef50fd654244b25a74eef79f86be82db3117f0cb53f384b
MD5 b6ad6ce5bc429485893da819646fef23
BLAKE2b-256 ba8de9697edd3fda713ec590cfea78326fcbcce5b8de9423569698124ea277da

See more details on using hashes here.

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