Skip to main content

Provides an AES field for Django that does AES encryption and decryption using m2secret-py3, a Python wrapper for OpenSSL.

Usage

Like any other field:

from aesfield.field import AESField

class SomeModel(...):
    key = AESField()

Configuration

AESField takes the following parameters beyond a normal CharField:

  • aes_prefix: the prefix to use on fields, defaults to aes:

  • aes_key: the key to use in the lookup method to find a suitable key for this field, defaults to default

Settings:

  • AES_METHOD: the module to look in for a key lookup method, if you want something different from the default, aesfield.default

  • AES_KEYS: used by the aesfield.default method. It’s a dictionary of keys to filenames. Those files must be able to be read by the Django process. It must have a default key, unless you specify a specifc one in aes_key

Commands

If you add aesfield to INSTALLED_APPS you’ll get one more command, generate_aes_keys. This will generate a new file for each file mentioned in the AES_KEYS dictionary. But only if that file does not already exist.

Release files for django-aesfield 4.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-aesfield 4.0.0
File Size Uploaded
django-aesfield-4.0.0.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-aesfield 4.0.0
File Interpreter ABI Platform
django_aesfield-4.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / django-aesfield-4.0.0.tar.gz

Download URL django-aesfield-4.0.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
425b5c0ed6d96045af8b47230dd5870a12cf3feb7a9c601878c82ebaf409cdce
BLAKE2b-256 checksum
How to use checksums
1e8ed7cc989872c50eb70fe3ee162b944e1ac93d4bf5822c54b72fbfe87b2970
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / django_aesfield-4.0.0-py3-none-any.whl

Download URL django_aesfield-4.0.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c88e7dc063919c4fa2fba6d7c65eb7be05838323ca3adcce76fb687d30d630b
BLAKE2b-256 checksum
How to use checksums
8b99bcb805c97b678c4ff1aa4e7938cfbbc98cde04eb03a2c0621a477c7bfa23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

4.0.0 This release

2 release files

3.1.0

2 release files

3.0.1

2 release files

3.0

2 release files

2.2

2 release files

2.1

2 release files

2.0

2 release files

1.1

2 release files

1.0

2 release files

0.3.0

1 release file

0.2

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page