diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2020-05-12 11:16:10 -0400 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2020-05-12 11:16:10 -0400 |
commit | f5fdab0d18757b9952799eb1956a970773adddaa (patch) | |
tree | 2d53e23f6cfd812cb6dfddf7615801efb1c07fb8 /docs/history | |
parent | 6bba63a8d801f413154f523cc2c3e899af243cc8 (diff) | |
download | passlib-f5fdab0d18757b9952799eb1956a970773adddaa.tar.gz |
bugfix: bcrypt os_crypt backend wasn't being detected properly under py3;
due to a few interlocking issues.
passlib.utils: test_crypt() shouldn't accept hash=<bytes>,
because equality comparison with str will always fail under py3.
* test_crypt() now enforces hash=<unicode_or_str> as input.
it previously allowed hash=bytes, but equality comparison
with unicode (output by safe_crypt) would always return False
under python 3.
* bcrypt's TEST_HASH_2A constant was stored bytes, which was causing os_crypt
detection to fail due to test_crypt() bug above. changed to use native str.
sidewnote: this would have been caught by UTs, except for bug in
test_82_crypt_support() that was fixed in rev 43bae3f786b7.
Diffstat (limited to 'docs/history')
-rw-r--r-- | docs/history/1.7.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/history/1.7.rst b/docs/history/1.7.rst index 49b452a..5d8ff44 100644 --- a/docs/history/1.7.rst +++ b/docs/history/1.7.rst @@ -36,6 +36,11 @@ Bugfixes plain SHA256. This should strengthen the hash against brute-force attempts which bypass the intermediary hash by using known-sha256-digest lookup tables (:issue:`114`). +* .. py:currentmodule:: passlib.hash + + :class:`bcrypt`: OS native backend wasn't being detected under Python 3 on BSD platforms. + This was due to an internal issue in feature-detection code, which has been fixed. + * :func:`passlib.utils.safe_crypt`: Support :func:`crypt.crypt` unexpectedly returning bytes under Python 3 (:issue:`113`). |