Skip to main content

An ultra-lightweight library to securely encrypt any file with AES.

Project description

easy-aes 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 easy-aes
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 easy-aes
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

easy-aes works Python 3.3+. To install it, use:

$ pip install easy-aes

0.1

Released on September 10, 2016

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

easy-aes-0.122.zip (2.8 kB view details)

Uploaded Source

File details

Details for the file easy-aes-0.122.zip.

File metadata

  • Download URL: easy-aes-0.122.zip
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for easy-aes-0.122.zip
Algorithm Hash digest
SHA256 66a5ec6e2308fbf0c8d8071fcce50c0239154085cd748ad9fc4d85924a7830ab
MD5 189202b79e40820b17bc647f7bf49848
BLAKE2b-256 354b70b60af586d38a047847631711611f02f00b2947b6410c3d974f3b32f692

See more details on using hashes here.

Supported by

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