<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/passlib.git/passlib/utils/compat, branch scrypt-dev</title>
<subtitle>foss.heptapod.net: python-libs/passlib
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/'/>
<entry>
<title>passlib.handlers.scrypt: created scrypt hash handler, complete with UTs and docs</title>
<updated>2016-06-11T00:21:32+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-06-11T00:21:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=83280f2468e6119bdeca4cb4a90712496985254d'/>
<id>83280f2468e6119bdeca4cb4a90712496985254d</id>
<content type='text'>
* scrypt kdf code

  - relocated scrypt kdf code to passlib.crypto.scrypt

  - py3 compat fixes

  - split UTs out into separate file

  - removed "non-power of 2" support, not needed.

  - added wrapper which can toggle between builtin backend,
    and extenrnal scrypt package.

  - factored out n/r/p validation code so it can be used independantly
    of calling kdf itself.

* passlib.handlers.scrypt: added scrypt handler which wraps the kdf.

  - added some custom test strings, as well as adapted some reference values
    from the scrypt whitepaper.

  - added documentation page

  - integrated scrypt kdf wrapper w/ hash's HasManyBackends api
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* scrypt kdf code

  - relocated scrypt kdf code to passlib.crypto.scrypt

  - py3 compat fixes

  - split UTs out into separate file

  - removed "non-power of 2" support, not needed.

  - added wrapper which can toggle between builtin backend,
    and extenrnal scrypt package.

  - factored out n/r/p validation code so it can be used independantly
    of calling kdf itself.

* passlib.handlers.scrypt: added scrypt handler which wraps the kdf.

  - added some custom test strings, as well as adapted some reference values
    from the scrypt whitepaper.

  - added documentation page

  - integrated scrypt kdf wrapper w/ hash's HasManyBackends api
</pre>
</div>
</content>
</entry>
<entry>
<title>relocated many of the crypto routes inside passlib.utils,</title>
<updated>2016-02-10T19:27:53+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-02-10T19:27:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=7b598fe89d604ef91efd4f71253ffb9ab0aae7c5'/>
<id>7b598fe89d604ef91efd4f71253ffb9ab0aae7c5</id>
<content type='text'>
and moved them to a separate passlib.crypto subpackage.

along with this move, made a few api cleanups:

* unified all code that's looking up hashes
  to use new passlib.crypto.lookup_hash() wrapper, which takes
  care of hash name normalization, loading fallback implementations,
  and alg metadata inspection, all hidden behind a memoized function.

* deprecated pbkdf2() in favor of pbkdf2_hmac() -- only real use,
  and new signature matches stdlib function.  additionally,
  this version is a bit faster, due to some assumptions that
  can be made due to the PRF always being HMAC based.

* added compile_hmac() helper which does an even more efficient
  job of pre-compiling a keyed HMAC function; this helped speed up pbkdf2 a bit more.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
and moved them to a separate passlib.crypto subpackage.

along with this move, made a few api cleanups:

* unified all code that's looking up hashes
  to use new passlib.crypto.lookup_hash() wrapper, which takes
  care of hash name normalization, loading fallback implementations,
  and alg metadata inspection, all hidden behind a memoized function.

* deprecated pbkdf2() in favor of pbkdf2_hmac() -- only real use,
  and new signature matches stdlib function.  additionally,
  this version is a bit faster, due to some assumptions that
  can be made due to the PRF always being HMAC based.

* added compile_hmac() helper which does an even more efficient
  job of pre-compiling a keyed HMAC function; this helped speed up pbkdf2 a bit more.
</pre>
</div>
</content>
</entry>
<entry>
<title>comments &amp; doc updates</title>
<updated>2015-07-23T17:47:47+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2015-07-23T17:47:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=9b6e2743dd2c542f70b4777c277fd3c1fc9ccd88'/>
<id>9b6e2743dd2c542f70b4777c277fd3c1fc9ccd88</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>passlib.tests -- clean ups of os_crypt &amp; general backend handling</title>
<updated>2015-07-23T17:34:56+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2015-07-23T17:34:56+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=ad911e38ddb8e7183641b4a9373c0006a41f2066'/>
<id>ad911e38ddb8e7183641b4a9373c0006a41f2066</id>
<content type='text'>
* moved utils.patchAttr() function to TestCase.patchAttr(),
  redid a bunch of manual monkeypatches to use .patchAttr() method.

* temporary_backend() hack replaced by subcls.using(), so temporary
  backend use will be threadsafe (needed for concurrent tests).

* HandlerCase.create_backend_cases() replaced with HandlerCase.create_backend_case(),
  all calls split out to make individual calls for each backend.
  Easier to read in diffs going forward when backends added/removed.

* moved os_crypt specific code w/in create_backend_case() to OsCryptMixin,
  which just subclasses the method it needs to modify. allowed
  removing find_crypt_replacement() method entirely; decision to skip backend
  now directly uses OsCryptMixin's own logic.

* fuzz_verifier_crypt() cleanups
      - moved to OsCryptMixin; removing .using_patched_crypt ref from HandlerCase
      - has_crypt_support() helper rolled into method, was only caller.
      - os_supports_ident() refactored into crypt_supports_variant().
        fuzz_verified_crypt() is (now) the only caller.

* bcrypt's crypt_supports_variant() now uses actual test of crypt()
  rather than hardcoded list of supported values.

* fuzz verifier now handlers hashes throwing SkipTest.

* utils.has_crypt_support() rolled into
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* moved utils.patchAttr() function to TestCase.patchAttr(),
  redid a bunch of manual monkeypatches to use .patchAttr() method.

* temporary_backend() hack replaced by subcls.using(), so temporary
  backend use will be threadsafe (needed for concurrent tests).

* HandlerCase.create_backend_cases() replaced with HandlerCase.create_backend_case(),
  all calls split out to make individual calls for each backend.
  Easier to read in diffs going forward when backends added/removed.

* moved os_crypt specific code w/in create_backend_case() to OsCryptMixin,
  which just subclasses the method it needs to modify. allowed
  removing find_crypt_replacement() method entirely; decision to skip backend
  now directly uses OsCryptMixin's own logic.

* fuzz_verifier_crypt() cleanups
      - moved to OsCryptMixin; removing .using_patched_crypt ref from HandlerCase
      - has_crypt_support() helper rolled into method, was only caller.
      - os_supports_ident() refactored into crypt_supports_variant().
        fuzz_verified_crypt() is (now) the only caller.

* bcrypt's crypt_supports_variant() now uses actual test of crypt()
  rather than hardcoded list of supported values.

* fuzz verifier now handlers hashes throwing SkipTest.

* utils.has_crypt_support() rolled into
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge from stable</title>
<updated>2015-01-28T04:05:27+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2015-01-28T04:05:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=961678647855d0488a972f49aebdbad0c2627f87'/>
<id>961678647855d0488a972f49aebdbad0c2627f87</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>made passlib.utils.compat a package, moved _ordered_dict backport inside it.</title>
<updated>2015-01-27T21:49:47+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2015-01-27T21:49:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=5a1ffcc13f356aa332d3c65c05c596b7fd05861b'/>
<id>5a1ffcc13f356aa332d3c65c05c596b7fd05861b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
