From 394882d070390f25caeebb5fa27b73bc7666c7e4 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 27 Jun 2016 11:53:42 -0500 Subject: Convert bcrypt to use OpenBSD code (#68) * swap to using openbsd bcrypt * we should probably call this 3.0 * update tests to handle slight change in behavior, test better * strip out code we're not using * define this for linux * py3 fix * add a changelog to the readme * maybe work with windows * portable endian header, replace swaps, other windows fixes * handle older windows compilers properly, handle glibc < 2.9, retab * remove a todo, that's definitely the limit * make these definitions conditional since some BSDs may already have them * add $2a$ tests from crypt_blowfish-1.3 * update readme to note supported prefixes * almost pointless commit * add support for $2y$ test vectors from openwall crypt-blowfish1.3 --- README.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'README.rst') diff --git a/README.rst b/README.rst index 5f735b2..722e883 100644 --- a/README.rst +++ b/README.rst @@ -34,6 +34,19 @@ For Fedora and RHEL-derivatives, the following command will ensure that the requ $ sudo yum install gcc libffi-devel python-devel +Changelog +========= + +3.0.0 +----- +* Switched the C backend to code obtained from the OpenBSD project rather than + openwall. + +2.0.0 +----- +* Added support for an adjustible prefix when calling `gensalt`. +* Switched to CFFI 1.0+ + Usage ----- @@ -84,6 +97,8 @@ Another one of bcrypt's features is an adjustable prefix to let you define what libraries you'll remain compatible with. To adjust this, pass either ``2a`` or ``2b`` (the default) to ``bcrypt.gensalt(prefix=b"2b")`` as a bytes object. +As of 3.0.0 the `$2y$` prefix is still supported in `hashpw` but deprecated. + Maxmimum Password Length ~~~~~~~~~~~~~~~~~~~~~~~~ @@ -107,6 +122,11 @@ Compatibility This library should be compatible with py-bcrypt and it will run on Python 2.6+, 3.3+, and PyPy 2.6+. +C Code +------ + +This library uses code from OpenBSD. + Security -------- -- cgit v1.2.1