Skip to content

Commit

Permalink
202001.4
Browse files Browse the repository at this point in the history
  • Loading branch information
lechgu committed Jan 23, 2020
1 parent 401afd9 commit 8533e44
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Hush does not require a master password as other password managers do, instead i

#### What's new?

- Version 202001.4 (Jan 23, 2020)

- Improved compatibility with ssh RSA keys

- Version 202001.3 (Jan 18, 2020)

- Initial stable release
Expand Down
2 changes: 1 addition & 1 deletion hush/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def config_callback(ctx, param, value):


@click.group()
@click.version_option("202001.3")
@click.version_option("202001.4")
@click.option(
"-c",
"--config-file",
Expand Down
9 changes: 6 additions & 3 deletions hush/keypairs.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ def generate(bits, passphrase):

def change_passphrase(key, old_passphrase, new_passphrase):
key = _RSA.importKey(key, old_passphrase)
return key.export_key(
passphrase=new_passphrase, pkcs=8, protection="scryptAndAES128-CBC"
)
if new_passphrase:
return key.export_key(
passphrase=new_passphrase, pkcs=8, protection="scryptAndAES128-CBC"
)
else:
return key.exportKey()
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ push = false

[tool.poetry]
name = "hush"
version = "202001.3"
version = "202001.4"
description = "Minimalistic command line secret management"
license = "BSD-3-Clause"
authors = ["Lech Gudalewicz <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_version():
runner = CliRunner()
output = runner.invoke(cli, "--version").output.strip()

assert "202001.3" in output
assert "202001.4" in output


def test_generate_default():
Expand Down

0 comments on commit 8533e44

Please sign in to comment.