Skip to main content

Pycrypto based Simple And Easy Cipher on AES

Project description

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

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

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.

Supported by

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