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.
- pybcrypt_py3_support.patch 5.98KB
Comment #1
Posted on Mar 13, 2012 by Helpful RabbitComment deleted
Comment #2
Posted on Mar 13, 2012 by Helpful RabbitMade a few changes (replaced bzero w/ memset, added checks for null characters in password); attached is a second rewrite of my patch.
Comment #3
Posted on Mar 5, 2013 by Massive PandaIs 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 RabbitI'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 DogComment deleted
Comment #6
Posted on Jul 22, 2013 by Happy DogI went ahead and applied your diffs, please review and supply more!
Comment #7
Posted on Jul 27, 2013 by Massive WombatThanks - 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