Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

pypm install django-pci-auth

How to install django-pci-auth

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-pci-auth
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.0.6Never BuiltWhy not?
0.0.3 Available View build log
0.0.1 Available View build log
Linux (64-bit)
0.0.6 Available View build log
0.0.3 Available View build log
0.0.1 Available View build log
Lastest release
version 0.0.6 on Jan 9th, 2014


Django 1.4+ with SSL only


Currently this application validates password fields via un-encrypted AJAX communication, use with SSL only! In the future this application may encrypt its AJAX communication via some JavaScript encryption library TBD.

This library integrates the current Django "best of" PCI auth libraries into a single application then fills in the gaps. Filling in the gaps involves making decisions for you e.g.:

And adding additional functionality e.g.:

  • Database models to persist event data e.g. lockouts (See: docs/MODELS.rst).
  • Additional recently_used validator for django-passwords.
  • Stronger password hashing that allows for selection of hashing algorithm scrypt, bcrypt, PBKDF2, etc. via settings.py. [1]
  • Checking for strong passwords with a default length setting overrideable in settings.py. [2]
  • Integrate strong passwords into Django Admin.
  • Lock out account for n minutes after x failed log-in attempts. [3]
  • Set inactivity timeouts.
  • Generate event/email when lock-out occurs.
  • Set flags disallowing certain accounts to be locked out.
  • Log every log-on and explicit log-out (not necessary to log timed out log-ins).
  • Track last four passwords and do not allow re-use. [4]
  • Force password reset after X amount of time.
  • Provide JavaScript to check for strong passwords inline. [5]

Before you use this library in your applications you may wish to demo its functionality. To do so, follow these steps:

$ virtualenv .
$ bin/pip install django-pci-auth
$ bin/django-admin.py syncdb --settings=django_pci_auth.settings
$ bin/django-admin.py runserver --settings=django_pci_auth.settings


Stronger password hashing

This is a built-in feature in Django 1.4+. Documented here for convenience:

    # From https://docs.djangoproject.com/en/1.4/topics/auth/:
    # "[redacted] This means that Django will use the first hash in the list
    # to store all passwords, but will support checking passwords stored with
    # the rest of the hashes in the list. If you remove a hash from the list
    # it will no longer be supported.
Password Reuse

How many old passwords will you store? This feature will prevent users from using the same passwords over and over again; it will keep the last OLD_PASSWORD_STORAGE_NUM number of passwords around and remove anything older. E.g.:

Feature overview (via index view)
Password length enforcement (with AJAX validation)
Failed login attempts log
Recently used password log

This software is licensed under the same BSD license that Django itself is licensed under. See: LICENSE.

[1]This feature is included with Django 1.4+
[2]This feature is provided by django-passwords
[3]This feature is provided by django-axes


0.0.6 (2012-12-05)
  • Add a note re: SSL [aclark]
0.0.5 (2012-12-04)
  • Feature complete [aclark]
0.0.4 (2012-11-28)
  • Pre-release, includes most features promised. [aclark]

Subscribe to package updates

Last updated Jan 9th, 2014

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.