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.6
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.6.tar.gz | 2.7 kB | Details |
Release files / Simple-AES-Cipher-1.0.6.tar.gz
| Download URL | Simple-AES-Cipher-1.0.6.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5775049a800f683d0594b0387991f7fb5fe8eaf7666dd1c5d71deba7394fde3f
|
|
BLAKE2b-256 checksum How to use checksums |
c014a056726ddc65556d19e31cae2603c8bb92b624c9858f4bde36604d0e8715
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |