Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
django-cryptography-5
Advanced tools
Note: This is a fork of the official django-cryptography
_ project,
which appears to be abandoned.
The only change made in this fork that the patch that fixes Django 5 compatibility_
has been applied and pushed to pypi as a new project.
You can install the forked version from pypi with the following command:
.. code-block:: console
pip install django-cryptography-5
The rest of this README is the original README from the official project.
A set of primitives for easily encrypting data in Django, wrapping the Python Cryptography_ library. Also provided is a drop in replacement for Django's own cryptographic primitives, using Cryptography_ as the backend provider.
Do not forget to read the documentation_.
.. START HIDDEN .. image:: https://img.shields.io/github/workflow/status/georgemarshall/django-cryptography/CI/master :target: https://github.com/georgemarshall/django-cryptography/actions/workflows/main.yml :alt: GitHub Workflow Status (branch) .. image:: https://img.shields.io/codecov/c/github/georgemarshall/django-cryptography/master :target: https://app.codecov.io/gh/georgemarshall/django-cryptography/branch/master :alt: Codecov branch .. END HIDDEN
Using symmetrical encryption to store sensitive data in the database.
Wrap the desired model field with encrypt
to easily
protect its contents.
.. code-block:: python
from django.db import models
from django_cryptography.fields import encrypt
class MyModel(models.Model): name = models.CharField(max_length=50) sensitive_data = encrypt(models.CharField(max_length=50))
The data will now be automatically encrypted when saved to the
database. encrypt
uses an encryption that allows for
bi-directional data retrieval.
.. code-block:: console
pip install django-cryptography
.. _Cryptography: https://cryptography.io/ .. _Django: https://www.djangoproject.com/ .. _Python: https://www.python.org/ .. _documentation: https://django-cryptography.readthedocs.io/en/latest/ .. _django-cryptography: https://github.com/georgemarshall/django-cryptography/ .. _compatibility: https://github.com/georgemarshall/django-cryptography/issues/74
FAQs
Easily encrypt data in Django
We found that django-cryptography-5 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.