<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/passlib.git/docs/lib/passlib.hash.scrypt.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.crypto.scrypt: add support for hashlib.scrypt() backend (fixes issue 86)</title>
<updated>2019-11-11T20:15:07+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2019-11-11T20:15:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=f339799ff1c60dc57347f403e15371d934f3f060'/>
<id>f339799ff1c60dc57347f403e15371d934f3f060</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>passlib.crypto.scrypt: reworked backend loader internals</title>
<updated>2017-01-23T16:05:40+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2017-01-23T16:05:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=62e93f87fa0ca8e346997e5c171af47d05dd2d1b'/>
<id>62e93f87fa0ca8e346997e5c171af47d05dd2d1b</id>
<content type='text'>
* reworked backends so they're more pluggable.

* added _has_backend() helper for UTs to use, instead of _load_backend()
  hack, which wasn't respecting dryrun flag.

this is mainly in preparation for issue 86: adding backend to support stdlib's
hashlib.scrypt().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* reworked backends so they're more pluggable.

* added _has_backend() helper for UTs to use, instead of _load_backend()
  hack, which wasn't respecting dryrun flag.

this is mainly in preparation for issue 86: adding backend to support stdlib's
hashlib.scrypt().
</pre>
</div>
</content>
</entry>
<entry>
<title>docs: minor wording corrections, replaced 'encrypt' with 'hash' in a bunch of places.</title>
<updated>2016-11-25T16:53:32+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-11-25T16:53:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=5e230694bdc3c16a6962d3a57ec821584dccdc23'/>
<id>5e230694bdc3c16a6962d3a57ec821584dccdc23</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: marked MCF as "deprecated" in favor of PHC format, notes scrypt &amp; argon2 PHC compatibility.</title>
<updated>2016-10-04T16:32:24+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-10-04T16:32:24+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=4a8c04e2f2a232dbd021e094ef718066f5d63268'/>
<id>4a8c04e2f2a232dbd021e094ef718066f5d63268</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>docs: build fixes</title>
<updated>2016-06-23T22:11:38+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-06-23T22:11:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=cedca74457a89085b99fedec9706d69981f94f9d'/>
<id>cedca74457a89085b99fedec9706d69981f94f9d</id>
<content type='text'>
* switched to custom sphinx-fulltoc branch for now, due to readthedocs issue
* added tox.ini environment to test documentation building
* fixed rst warnings about dup target &amp; missing document
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* switched to custom sphinx-fulltoc branch for now, due to readthedocs issue
* added tox.ini environment to test documentation building
* fixed rst warnings about dup target &amp; missing document
</pre>
</div>
</content>
</entry>
<entry>
<title>docs: various updates</title>
<updated>2016-06-20T22:58:45+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-06-20T22:58:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=5ee323b41d51137ee3a6344a6a390219ce253e45'/>
<id>5ee323b41d51137ee3a6344a6a390219ce253e45</id>
<content type='text'>
* updated new_application_quickstart to account for Argon2
* added doc page for passlib.crypto
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* updated new_application_quickstart to account for Argon2
* added doc page for passlib.crypto
</pre>
</div>
</content>
</entry>
<entry>
<title>scrypt: hash format changed</title>
<updated>2016-06-20T20:52:22+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-06-20T20:52:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=47ce6180c802f03c4436cbbf7cfccf96d65626f4'/>
<id>47ce6180c802f03c4436cbbf7cfccf96d65626f4</id>
<content type='text'>
* tweaked passlib's format to follow argon2 and
  use explicit param names  + normal base64 encoding
* added support for openwall's $7$ format
* moved hash tests to separate file
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* tweaked passlib's format to follow argon2 and
  use explicit param names  + normal base64 encoding
* added support for openwall's $7$ format
* moved hash tests to separate file
</pre>
</div>
</content>
</entry>
<entry>
<title>renamed PasswordHandler.replace() back to PasswordHandler.using()</title>
<updated>2016-06-15T22:07:59+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-06-15T22:07:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=ce23c2ab15e70b612cbd902bf0513c0cf6d734e9'/>
<id>ce23c2ab15e70b612cbd902bf0513c0cf6d734e9</id>
<content type='text'>
this basically reversed rev 5c41b0153d4f; after using it a bit more,
decided the name didn't indicate as well what the method was doing.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
this basically reversed rev 5c41b0153d4f; after using it a bit more,
decided the name didn't indicate as well what the method was doing.
</pre>
</div>
</content>
</entry>
<entry>
<title>PasswordHash.hash() api shift: deprecating passing settings kwds into hash() --</title>
<updated>2016-06-15T21:43:31+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-06-15T21:43:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=713c0bb81f3cec4ee15715657c627a9757a2edf2'/>
<id>713c0bb81f3cec4ee15715657c627a9757a2edf2</id>
<content type='text'>
callers should use handler.replace(**settings).hash() instead.

this is being done because it greatly streamlines the internals of the .hash()
implementation, and allows some redundant configuration parsing to be extracted
from the .hash() methods and merged in with existing code in .replace().

this also opens things up for alternate code architectures for implementing new hashers,
making it easier to wrap existing libraries (e.g. argon2).

internals
---------
* replaced a bunch of internal .hash(**settings) calls

* GenericHandler
    - stripped out 'relaxed' keyword from constructor, since it's no longer
      passed by hash() etc.
    - _norm_checksum() now only invoked if checksum is specified (simplifies logic).
      keeping support for 'relaxed' mode, but only as explicit keyword.
    - removed some unused comments about .from_string() &amp; .to_string()

* HasSalt mixin:
    - .replace() now supports 'salt' keyword, creates variant
      which has a fixed salt string.

    - 'salt size' keyword removed from ctor, now handled by .replace() call

    - _norm_salt() converted to class method so it can be
       used by .replace() 'salt' keyword code.

    - per-instance bits of _norm_salt() relocated to HasSalt.__init__ proper

    - _generate_salt() converted to class method, since no longer depends on instance config.

* HasRounds mixin:

    - similar to HasSalt, relocates per-instance bits of _norm_rounds()
      into HasRounds.__init__() proper.

    - remainder of _norm_rounds() turned into class method, merged
      with ._clip_to_valid_rounds() helper to reduce duplication.

    - _generate_rounds() converted to class method, since no longer depends on instance config.

hashers
-------
* fshp: added support for 'variant' keyword to replace()
* unix_disabled: added support for 'marker' keyword to replace(), added UTs.
* cisco_type7: to match HasSalt, added support for 'salt' keyword to replace(), added UTs.
* sha256/512_crypt: now uses custom salt &amp; rounds parsing, rather than relaxed kwd,
  to handle correctable-but-invalid config strings.

unittests
---------
* removed checks for PasslibConfigWarning when setting hash(rounds=) out of policy bounds,
  since that now *is* setting the policy.
* adapted some handler ctor to deal w/ lack of 'relaxed' kwd

docs
----
* updated docstrings listing hash() keywords for each scheme to list them
  as .replace() keywords.
* updated example code to use .replace()
* fleshed out api docs about the change
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
callers should use handler.replace(**settings).hash() instead.

this is being done because it greatly streamlines the internals of the .hash()
implementation, and allows some redundant configuration parsing to be extracted
from the .hash() methods and merged in with existing code in .replace().

this also opens things up for alternate code architectures for implementing new hashers,
making it easier to wrap existing libraries (e.g. argon2).

internals
---------
* replaced a bunch of internal .hash(**settings) calls

* GenericHandler
    - stripped out 'relaxed' keyword from constructor, since it's no longer
      passed by hash() etc.
    - _norm_checksum() now only invoked if checksum is specified (simplifies logic).
      keeping support for 'relaxed' mode, but only as explicit keyword.
    - removed some unused comments about .from_string() &amp; .to_string()

* HasSalt mixin:
    - .replace() now supports 'salt' keyword, creates variant
      which has a fixed salt string.

    - 'salt size' keyword removed from ctor, now handled by .replace() call

    - _norm_salt() converted to class method so it can be
       used by .replace() 'salt' keyword code.

    - per-instance bits of _norm_salt() relocated to HasSalt.__init__ proper

    - _generate_salt() converted to class method, since no longer depends on instance config.

* HasRounds mixin:

    - similar to HasSalt, relocates per-instance bits of _norm_rounds()
      into HasRounds.__init__() proper.

    - remainder of _norm_rounds() turned into class method, merged
      with ._clip_to_valid_rounds() helper to reduce duplication.

    - _generate_rounds() converted to class method, since no longer depends on instance config.

hashers
-------
* fshp: added support for 'variant' keyword to replace()
* unix_disabled: added support for 'marker' keyword to replace(), added UTs.
* cisco_type7: to match HasSalt, added support for 'salt' keyword to replace(), added UTs.
* sha256/512_crypt: now uses custom salt &amp; rounds parsing, rather than relaxed kwd,
  to handle correctable-but-invalid config strings.

unittests
---------
* removed checks for PasslibConfigWarning when setting hash(rounds=) out of policy bounds,
  since that now *is* setting the policy.
* adapted some handler ctor to deal w/ lack of 'relaxed' kwd

docs
----
* updated docstrings listing hash() keywords for each scheme to list them
  as .replace() keywords.
* updated example code to use .replace()
* fleshed out api docs about the change
</pre>
</div>
</content>
</entry>
</feed>
