https://git.schokokeks.org/derivepassphrase.git/tree/85fcc667bbe6a3efb47e11c46a67c959d2419e86 Recent commits to derivepassphrase.git (85fcc667bbe6a3efb47e11c46a67c959d2419e86) 2024-06-08T19:06:56+02:00 tag:gitlist.org,2012:commit/85fcc667bbe6a3efb47e11c46a67c959d2419e86 Exclude known "emergency exits" from coverage reporting 2024-06-08T19:06:56+02:00 Marco Ricci m@the13thletter.info <pre>These "emergency exits" are code paths rooted in defensive programming (of both code and of tests), and are not intended to be reached in practice. &lt;/pre&gt; tag:gitlist.org,2012:commit/9d27d86c9b17d6ee74682f9116b1c714dcd6af4c Add coverage testing 2024-06-08T19:06:56+02:00 Marco Ricci m@the13thletter.info <pre>&lt;/pre&gt; tag:gitlist.org,2012:commit/2a0045341f70a0730d5088d301a143d089af206a Overhaul dependency and environment handling in pyproject.toml 2024-06-08T19:06:56+02:00 Marco Ricci m@the13thletter.info <pre>&lt;/pre&gt; tag:gitlist.org,2012:commit/a6d65dffb25ef03bfb5da88b439ccf9f32f14a23 Add common globals to CLI module 2024-06-08T19:06:56+02:00 Marco Ricci m@the13thletter.info <pre>&lt;/pre&gt; tag:gitlist.org,2012:commit/c92d27bb9a3564743e463c28be13261ef48507dc Add example for `Vault.phrase_from_signature` 2024-06-08T19:06:56+02:00 Marco Ricci m@the13thletter.info <pre>Though written in doctest format, the test itself is skipped because it relies on a running SSH agent. Such external setup is better suited to an actual unit test suite. &lt;/pre&gt; tag:gitlist.org,2012:commit/51155a114a8eae81a0306fb4f266db4568683c90 Recognize ssh-ed448 keys as deterministic 2024-06-08T19:06:56+02:00 Marco Ricci m@the13thletter.info <pre>&lt;/pre&gt; tag:gitlist.org,2012:commit/a4df8dddcd5458e9fab8d41a3a3531daf88772c7 Fix documentation link to `sequin.Sequin` 2024-06-08T19:06:56+02:00 Marco Ricci m@the13thletter.info <pre>&lt;/pre&gt; tag:gitlist.org,2012:commit/1e5d605177a2f2a4441c99ca1515efaa55449697 Fix character set subtraction logic 2024-06-08T19:06:56+02:00 Marco Ricci m@the13thletter.info <pre>Use a static method, and treat both the original character set and the subtracted character set as sets (i.e. no repetitions allowed). &lt;/pre&gt; tag:gitlist.org,2012:commit/407bbddff031476549ae018bbe5de566a3b1f738 Fix repeated character detection logic in passphrase generation 2024-06-08T19:06:56+02:00 Marco Ricci m@the13thletter.info <pre>The prototype implementation is based off a JavaScript program, and is clumsy to read and hard to verify if translated directly to Python. (It also interacts badly with type checking.) Rewrite the check in a pythonic manner, from scratch, that is much easier to verify. &lt;/pre&gt; tag:gitlist.org,2012:commit/eb649f6489030b7e1ce4dc764713df4165725be5 Use neutral arguments in `Vault.create_hash` signature 2024-06-08T19:06:56+02:00 Marco Ricci m@the13thletter.info <pre>Currently, when generating a passphrase from an SSH key signature, `derivepassphrase.Vault.create_hash` requires the user to know the role of the `key` and `message` arguments themselves; in particular, it requires the user to add the vault UUID to the message themselves. The fact that the vault UUID is added to the hashing input is an implementation detail, as should be the fact that one of the arguments is a key and the other is a salt value to a key-derivation function. Put these details only into the docstring's description section, not the argument names; rename them to `phrase` and `service`, respectively. &lt;/pre&gt;