Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peopledoc/django-plainpasswordhasher
UNMAINTAINED SINCE SEP 2016 !!!!!! Was: Dummy (plain text) password hashing for Django... for use in tests!
https://github.com/peopledoc/django-plainpasswordhasher
approved-public ghec-mig-migrated
Last synced: 17 days ago
JSON representation
UNMAINTAINED SINCE SEP 2016 !!!!!! Was: Dummy (plain text) password hashing for Django... for use in tests!
- Host: GitHub
- URL: https://github.com/peopledoc/django-plainpasswordhasher
- Owner: peopledoc
- License: other
- Created: 2013-10-11T15:45:00.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-09-30T08:04:33.000Z (over 8 years ago)
- Last Synced: 2024-08-09T16:54:54.269Z (5 months ago)
- Topics: approved-public, ghec-mig-migrated
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 7
- Watchers: 11
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
**WARNING: this project is not maintained**
##########################
django-plainpasswordhasher
##########################Dummy (plain text) password hashing for Django... for use in tests!
***************
Speed up tests!
***************Cryptography is greedy. When you run tests, you usually do not care about
password security, but you care about performances. Using dummy password
hashing speeds up tests!Install ``django-plainpasswordhasher`` with your favorite installer.
Here is an example using pip:.. code:: sh
pip install django-plainpasswordhasher
Then configure your test settings:
.. code:: python
PASSWORD_HASHERS = ('django_plainpasswordhasher.PlainPasswordHasher', )
**************************************
Except explicit password hashing tests
**************************************In most cases, using a dummy password hasher will do the job.
But you may write some tests that require real password hashing. In such a
case, let's override settings!.. code:: python
from django.conf import global_settings # Django default settings...
# You may use your project's
# default settings instead.
from django.test import TestCase
from django.test.utils import override_settings@override_settings(PASSWORD_HASHERS=global_settings.PASSWORD_HASHERS)
class CryptographyTestCase(TestCase):
"""Tests that require real cryptography."""*********
Resources
********** PyPI page: https://pypi.python.org/pypi/django-plainpasswordhasher
* Code repository: https://github.com/novapost/django-plainpasswordhasher
* Bugtracker: https://github.com/novapost/django-plainpasswordhasher/issues
* Continuous integration: https://travis-ci.org/novapost/django-plainpasswordhasher**********
References
*********** `Original blog post
`_* `Django 1.5 documentation about getting faster tests
`_* `Discussion about password hashers & testing in Django issues
`_