Add zero-length password option to keyfile tool

This commit is contained in:
nolash 2021-06-09 15:17:19 +02:00
parent 54baa5fab1
commit a0d1b7dec6
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,7 @@
* 0.4.14-unreleased
- Remove web3 / eth-* module dependencies
- Add custom keyfile handling code and cli tool
- Add zero-length password option to keyfile cli tool
* 0.4.13
- Implement DictKeystore
- Remove unused insert_key method in keystore interface

View File

@ -22,6 +22,7 @@ logg = logging.getLogger()
argparser = argparse.ArgumentParser()
argparser.add_argument('-d', type=str, help='decrypt file')
argparser.add_argument('-z', action='store_true', help='zero-length password')
argparser.add_argument('-k', type=str, help='load key from file')
argparser.add_argument('-v', action='store_true', help='be verbose')
args = argparser.parse_args()
@ -43,6 +44,8 @@ def main():
global pk_hex
passphrase = os.environ.get('PASSPHRASE')
if args.z:
passphrase = ''
r = None
if mode == 'decrypt':
if passphrase == None:

View File

@ -33,7 +33,7 @@ f.close()
setup(
name="crypto-dev-signer",
version="0.4.14b3",
version="0.4.14b4",
description="A signer and keystore daemon and library for cryptocurrency software development",
author="Louis Holbrook",
author_email="dev@holbrook.no",
@ -63,5 +63,5 @@ setup(
'eth-keyfile=crypto_dev_signer.runnable.keyfile:main',
],
},
url='https://gitlab.com/chaintools/crypto-dev-signer',
url='https://gitlab.com/chaintool/crypto-dev-signer',
)