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.

Download
ActivePython
INSTALL>
pypm install bcryptor

How to install Bcryptor

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install bcryptor
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.2.2 Failed View build log
Windows (64-bit)
1.2.2 Failed View build log
Mac OS X (10.5+)
1.2.2 Available View build log
Linux (32-bit)
1.2.2 Available View build log
Linux (64-bit)
1.2.2 Available View build log
 
Author
Dependencies
Imports
Lastest release
version 1.2.2 on Jan 5th, 2011

Bcrypt is an implementation of a modern password hashing algorithm, based on the Blowfish block cipher, by Niels Provos and David Mazieres. It has been the default password scheme since OpenBSD 2.1.

A paper on the algorithm that explains its design decisions is available here: http://www.usenix.org/events/usenix99/provos.html

The most important property of bcrypt is that it is adaptable to future processor performance improvements, allowing you to arbitrarily increase the processing cost of checking a password while still maintaining compatibility with your older password hashes.

This package provides a high level object oriented wrapper around bcrypt, as well as low level bindings to the C library. It uses the random number generator random.SystemRandom() to create the salts.

Installation

To build the module from source code, read documentation on doc/source.txt.

Logging

Yamlog manages the error catching code and error reporting. Read its documentation if want to be set up.

Use

Typical usage:

System Message: WARNING/2 (<string>, line 30)

Literal block expected; none found.

import bcryptor

hasher = bcryptor.Bcrypt() hash = hasher.create('crack my pass')

And to validate:

>>> hasher.valid('crack my pass', hash)

System Message: ERROR/3 (<string>, line 38)

Inconsistent literal block quoting.

True >>> hasher.valid('Crack my pass', hash) False

Change history

v1.2.2, 2010-02-26

  • Fixed an import error at loading the package to get its docstring. It doesn't

System Message: WARNING/2 (<string>, line 51)

Bullet list ends without a blank line; unexpected unindent.

works when is imported a module generated by cython which has not built.

v1.2.1, 2010-02-25

  • Added a null handler to logging, since Yamlog could not has been set up.

v1.2, 2010-02-24

  • The license has been changed to ISC.
  • For indentation, is used 4 spaces as is indicated in PEP-8.
  • The manage of exceptions and imports has been improved.
  • Better docstrings.
  • The values of cost can be changed at instancing Bcrypt().
  • Changed from Pyrex to Cython.
  • The logging is managed through Yamlog.

v1.1, 2009-05-20

  • Initial release.

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

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.