Skip to main content

Pycrypto based Simple And Easy AES Cipher

Dependencies

  • Python 2.7 or later

  • Pycrypto 2.6.1 or later

Install

$ pip install Simple-AES-Cipher

Usage

from simple_aes_cipher import AESCipher, generate_secret_key

pass_phrase = "hogefuga"
secret_key = generate_secret_key(pass_phrase)

# generate cipher
cipher = AESCipher(secret_key)

raw_text = "abcdefg"
encrypt_text = cipher.encrypt(raw_text)
assert raw_text != encrypt_text

decrypt_text = cipher.decrypt(encrypt_text)
assert encrypt_text != decrypt_text
assert decrypt_text == raw_text

LICENSE

  • MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Simple-AES-Cipher-1.0.6.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file Simple-AES-Cipher-1.0.6.tar.gz.

File metadata

File hashes

Hashes for Simple-AES-Cipher-1.0.6.tar.gz
Algorithm Hash digest
SHA256 5775049a800f683d0594b0387991f7fb5fe8eaf7666dd1c5d71deba7394fde3f
MD5 92b578bb11afc678938fe4b1a5e23b01
BLAKE2b-256 c014a056726ddc65556d19e31cae2603c8bb92b624c9858f4bde36604d0e8715

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.7

1 file

This release

1.0.6 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page