aespy is an ultra-lightweight, pure-python library for doing AES encryption. It draws heavily on the popular crypto library, simplifying AES encryption and decryption of files to a single function each.
Usage
Simple usage follows this pattern:
import aespy
encrypt_me = "my_transcript.pdf"
output_file = easy-aes.encrypt_file(encrypt_me)
output_file is a string with the new file name.
WARNING: IF YOU FORGET YOUR PASSWORD AND DELETE THE ORIGINAL DATA, YOUR FILE WILL NOT BE ABLE TO BE RETRIEVED!
import aespy
encrypted_file = "my_encrypted_filename.aes"
binary_data = easy-aes.decrypt_file(encrypted_file)
with open('my_new_file.aaa','wb') as new_file:
new_file.write(decrypted_data)
decrypt_file returns a Python object containing the now-decrypted data.
Installation
aespy works Python 3.3+. To install it, use:
$ pip install aespy
0.1
Released on September 10, 2016
Release files for aespy 0.131
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aespy-0.131.zip | 2.7 kB | Details |
Release files / aespy-0.131.zip
| Download URL | aespy-0.131.zip |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e462d269677aa8f10a75cdaa1003a7e129188c604ad2bf19d2e5b439ce5478cc
|
|
BLAKE2b-256 checksum How to use checksums |
6e6d7dbe4e64c2ac4b3fa1fe0d371a16cf0b9b8fa9ab19683d23f1fbdaf383bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |