Export to GitHub

py-bcrypt - issue #5

Python 3 Support (with patch)


Posted on Mar 2, 2012 by Helpful Rabbit

It would be really nice to have Python 3 support... as far I can tell, none of the bcrypt C extensions for python support Python 3 yet.

Attached is an hg patch which should enable pybcrypt to be built for Python 3. It makes a few changes here and there (which I tried to document), I hope it's useful.

Attachments

Comment #1

Posted on Mar 13, 2012 by Helpful Rabbit

Comment deleted

Attachments

Comment #2

Posted on Mar 13, 2012 by Helpful Rabbit

Made a few changes (replaced bzero w/ memset, added checks for null characters in password); attached is a second rewrite of my patch.

Attachments

Comment #3

Posted on Mar 5, 2013 by Massive Panda

Is this project dead? This patch is exactly what I needed, it'd be nice to see it in the main tree and on PyPi.

Comment #4

Posted on Mar 5, 2013 by Helpful Rabbit

I'm not sure if it's dead, but it certainly hasn't had activity in a few years.

Back when I submitted this patch, I was relying on py-bcrypt to provide a C-accelerated backend for Passlib (https://code.google.com/p/passlib). However, as soon I get enough free time I'm now planning to add a Python 3 compatible BCrypt extension directly into Passlib (issue is here -- https://code.google.com/p/passlib/issues/detail?id=40).

I can't promise any immediate timeframe, but if it looks like that would be a helpful alternative for you, feel free to follow that issue. :)

Comment #5

Posted on Jul 20, 2013 by Happy Dog

Comment deleted

Comment #6

Posted on Jul 22, 2013 by Happy Dog

I went ahead and applied your diffs, please review and supply more!

https://github.com/wcdolphin/python-bcrypt

Comment #7

Posted on Jul 27, 2013 by Massive Wombat

Thanks - I've merged a slightly tweaked version of this patch in preparation for a py-bcrypt-0.4 release.

Comment #8

Posted on Jul 28, 2013 by Massive Wombat

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Defect Priority-Medium