Skip to main content

Encrypt and decrypt files in AES Crypt format (version 2)

Project description

About pyAesCrypt

pyAesCrypt is a Python 3 file-encryption script that uses AES256-CBC to encrypt/decrypt files.

pyAesCrypt is compatible with the AES Crypt file format (version 2).

The script is Free Software, released under the Apache License, Version 2.0.

pyAesCrypt is brought to you by Marco Bellaccini - marco.bellaccini(at!)gmail.com.

IMPORTANT SECURITY NOTE: version 2 of the AES Crypt file format does not authenticate the “file size modulo 16” byte. This implies that an attacker with write access to the encrypted file may alter the corresponding plaintext file size by up to 15 bytes.

NOTE: there is no low-level memory management in Python, hence it is not possible to wipe memory areas were sensitive information was stored.

Usage examples

Encrypt file test.txt in test.txt.aes:

pyAesCrypt -e test.txt

Decrypt file test.txt.aes in test.txt:

pyAesCrypt -d test.txt.aes

Encrypt file test.txt in test2.txt.aes:

pyAesCrypt -e test.txt -o test2.txt.aes

Decrypt file test.txt.aes in test2.txt:

pyAesCrypt -d test.txt.aes -o test2.txt

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

pyAesCrypt-0.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyAesCrypt-0.1-py3.2.egg (5.5 kB view details)

Uploaded Egg

File details

Details for the file pyAesCrypt-0.1.tar.gz.

File metadata

  • Download URL: pyAesCrypt-0.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyAesCrypt-0.1.tar.gz
Algorithm Hash digest
SHA256 fbca42f68bab22df34a49968c149f89f7c166c3077d343898fcb0550aeeb3919
MD5 c6198688ebd4b43273b665ba2086e32f
BLAKE2b-256 e9880c3d6d271265c7438da64d7222bf469d21d977a162811694a1298c025fef

See more details on using hashes here.

File details

Details for the file pyAesCrypt-0.1-py3.2.egg.

File metadata

  • Download URL: pyAesCrypt-0.1-py3.2.egg
  • Upload date:
  • Size: 5.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyAesCrypt-0.1-py3.2.egg
Algorithm Hash digest
SHA256 e737302acdaec29731158804bc385393515a9c9f6757e97a7cbad8c515ba763b
MD5 5e058024159c5412ca410dbc2799c170
BLAKE2b-256 07fbb575c86fcaf09b4454a594ff7471fbae023144512bf6181c64351da230d2

See more details on using hashes here.

Supported by

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