<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/passlib.git/docs/lib/passlib.hash.rst, branch master</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.hash: added ldap_salted_sha256 &amp; ldap_salted_512 (issue 124)</title>
<updated>2020-10-06T01:14:41+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2020-10-06T01:14:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=3f1ad211d9499f5c36e9cc90c888c6e0da50ab3c'/>
<id>3f1ad211d9499f5c36e9cc90c888c6e0da50ab3c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>docs: various minor updates</title>
<updated>2020-02-16T15:57:40+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2020-02-16T15:57:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=75472043288fc88d30098e5e61a4e451e7d2c043'/>
<id>75472043288fc88d30098e5e61a4e451e7d2c043</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bugfix: passlib.hash.cisco_pix &amp; cisco_asa: major overhaul of internal implementation,</title>
<updated>2017-01-30T18:18:24+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2017-01-30T18:18:24+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=1fa1999d529392b0f7c7f8ea7ccf116abc9ae360'/>
<id>1fa1999d529392b0f7c7f8ea7ccf116abc9ae360</id>
<content type='text'>
fixed a number of edge cases where we were generating the wrong thing.

tests
-----
* expanded test vectors, and ran them against an ASA 9.6 system.

  marked out all vectors that were verified on 9.6 system.

  found that user appending, and various size thresholds, weren't being
  performed correctly by cisco_pix &amp; cisco_asa -- certain hashes generated prior
  to this will be "unverifiable" by a Cisco system.

* consolidated shared pix &amp; asa tests into common base class.

* added test for "spoil_digest" codepath that's been added to cisco_pix _calc_digest()
  (see below).

hashers
-------
* cisco_pix &amp; cisco_asa now reject too-large passwords, and silently
  return False when verifying them; to match Cisco behavior.
  updated truncate policy flags to match new behavior.

* overhaul of _calc_checksum(), to fix identified issues,
  lay out guesses &amp; reasoning, and added some citations.

docs
----
* updated docs to list new algorithm, and conditions where the old code
  would generate a bad hash.

* general cleanup of doc layout for these hashes

* updated "Cisco Hashes" section to give better listing of known hash formats.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fixed a number of edge cases where we were generating the wrong thing.

tests
-----
* expanded test vectors, and ran them against an ASA 9.6 system.

  marked out all vectors that were verified on 9.6 system.

  found that user appending, and various size thresholds, weren't being
  performed correctly by cisco_pix &amp; cisco_asa -- certain hashes generated prior
  to this will be "unverifiable" by a Cisco system.

* consolidated shared pix &amp; asa tests into common base class.

* added test for "spoil_digest" codepath that's been added to cisco_pix _calc_digest()
  (see below).

hashers
-------
* cisco_pix &amp; cisco_asa now reject too-large passwords, and silently
  return False when verifying them; to match Cisco behavior.
  updated truncate policy flags to match new behavior.

* overhaul of _calc_checksum(), to fix identified issues,
  lay out guesses &amp; reasoning, and added some citations.

docs
----
* updated docs to list new algorithm, and conditions where the old code
  would generate a bad hash.

* general cleanup of doc layout for these hashes

* updated "Cisco Hashes" section to give better listing of known hash formats.
</pre>
</div>
</content>
</entry>
<entry>
<title>docs: wording tweaks, emphasized 1.7 changes in hash tutorial, added note about saslprep()</title>
<updated>2016-11-27T17:22:41+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-11-27T17:22:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=8ee063dd5f436fdd035e6f596b82ba61bde079a6'/>
<id>8ee063dd5f436fdd035e6f596b82ba61bde079a6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>docs: LARGE update to documentation, tutorials added, pages relocated</title>
<updated>2016-11-20T19:11:35+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-11-20T19:11:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=a54c5ba533592f7113fd3a4a86bf8a036baa7860'/>
<id>a54c5ba533592f7113fd3a4a86bf8a036baa7860</id>
<content type='text'>
* moved a bunch of pages into 'docs/narr' narrative subsection.
  added placeholder pages in old locations, to minimize inbound link breakage.

* split history into separate pages, was getting way too long.
  removed toplevel CHANGES file, not feasible under new structure.

* passlib.ifc split into reference &amp; tutorial portions,
  tutorial allowed subsuming a bunch of other hash-usage examples.

* added standard fragments for warning about insecure hashes,
  added them to top of a LOT of hash doc pages.

* updated references, various layout tweaks
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* moved a bunch of pages into 'docs/narr' narrative subsection.
  added placeholder pages in old locations, to minimize inbound link breakage.

* split history into separate pages, was getting way too long.
  removed toplevel CHANGES file, not feasible under new structure.

* passlib.ifc split into reference &amp; tutorial portions,
  tutorial allowed subsuming a bunch of other hash-usage examples.

* added standard fragments for warning about insecure hashes,
  added them to top of a LOT of hash doc pages.

* updated references, various layout tweaks
</pre>
</div>
</content>
</entry>
<entry>
<title>docs: large reorganization of documentation</title>
<updated>2016-07-29T17:08:11+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-07-29T17:08:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=e8bb0ffb84a6e5bc3ebb2af21c90ccc64d97b2cb'/>
<id>e8bb0ffb84a6e5bc3ebb2af21c90ccc64d97b2cb</id>
<content type='text'>
* reordering into 'narrative' and 'reference' sections,
  to take advantage of 'fulltoc' extension making
  all pages visible in sidebar.

* styling updates, requires latest cloud_sptheme

* wording improvements to various bits of content
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* reordering into 'narrative' and 'reference' sections,
  to take advantage of 'fulltoc' extension making
  all pages visible in sidebar.

* styling updates, requires latest cloud_sptheme

* wording improvements to various bits of content
</pre>
</div>
</content>
</entry>
<entry>
<title>passlib.hash.argon2: support for Argon2 hash format</title>
<updated>2016-06-17T22:56:27+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-06-17T22:56:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=12f5a9415a30d38d4895c22543e973dcd27c7c25'/>
<id>12f5a9415a30d38d4895c22543e973dcd27c7c25</id>
<content type='text'>
* passlib.handlers.argon2 module contains 'argon2' hasher class,
  for both argon2_cffi &amp; argon2pure packages as backends.

* added UTs from argon2 clib source, as well as some from argon2_cffi,
  and some more custom hashes.

* UT harness: added limit so salt range test doesn't eat up all the memory under argon2.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* passlib.handlers.argon2 module contains 'argon2' hasher class,
  for both argon2_cffi &amp; argon2pure packages as backends.

* added UTs from argon2 clib source, as well as some from argon2_cffi,
  and some more custom hashes.

* UT harness: added limit so salt range test doesn't eat up all the memory under argon2.
</pre>
</div>
</content>
</entry>
<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>.encrypt() method renamed to .hash(), other api cleanups</title>
<updated>2016-06-10T16:32:52+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-06-10T16:32:52+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=281dacd121d72c7570442a13f2113f63c6c439ba'/>
<id>281dacd121d72c7570442a13f2113f63c6c439ba</id>
<content type='text'>
.encrypt()
----------
hash.encrypt() &amp; context.encrypt() have been renamed to .hash().
this should take care of the long-standing issue 21 (the poor naming of .encrypt).
per docs, legacy aliases will remain in place until passlib 2.0.

.genhash() / .genconfig()
-------------------------
taking advantage of this reorganization to also deprecate .genconfig()
and .genhash() -- they're not really useful in a modern system,
nor as needed for historical support as initially thought:
.genconfig() will be retired completely in passlib 2.0;
.genhash() is rolled into the new .hash() method along with .encrypt().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
.encrypt()
----------
hash.encrypt() &amp; context.encrypt() have been renamed to .hash().
this should take care of the long-standing issue 21 (the poor naming of .encrypt).
per docs, legacy aliases will remain in place until passlib 2.0.

.genhash() / .genconfig()
-------------------------
taking advantage of this reorganization to also deprecate .genconfig()
and .genhash() -- they're not really useful in a modern system,
nor as needed for historical support as initially thought:
.genconfig() will be retired completely in passlib 2.0;
.genhash() is rolled into the new .hash() method along with .encrypt().
</pre>
</div>
</content>
</entry>
<entry>
<title>cisco asa tweaks</title>
<updated>2015-07-25T16:57:12+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2015-07-25T16:57:12+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=6bcd272b737adc24b1b656856a47ff47adcfd6e7'/>
<id>6bcd272b737adc24b1b656856a47ff47adcfd6e7</id>
<content type='text'>
* split cisco ASA 7.0 code out into separate 'cisco_asa' class,
  some minor reformatting of the internals (no alg changes).

* updated documentation to reflect the two different classes,
  added to changelog.

* added some reference vectors generated by current implementation --
  vectors chosen to verify thresholds around various if/thens in the ASA alg.
  added note that these still need to be verified by official implementation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* split cisco ASA 7.0 code out into separate 'cisco_asa' class,
  some minor reformatting of the internals (no alg changes).

* updated documentation to reflect the two different classes,
  added to changelog.

* added some reference vectors generated by current implementation --
  vectors chosen to verify thresholds around various if/thens in the ASA alg.
  added note that these still need to be verified by official implementation.
</pre>
</div>
</content>
</entry>
</feed>
