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
Metadata
Release files for Simple-AES-Cipher 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Simple-AES-Cipher-1.0.7.tar.gz | 2.7 kB | Details |
Release files / Simple-AES-Cipher-1.0.7.tar.gz
| Download URL | Simple-AES-Cipher-1.0.7.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba83df87ff16bed219f6d4d2eb6aa9d961ec81a6a3c6fdf2b152c9d9ee270ef7
|
|
BLAKE2b-256 checksum How to use checksums |
6b6f29d1e26e47cd775870534a1600d6fb9187b5ebaa4e401623b6203c676b57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |