Add zero-length password option to keyfile tool
This commit is contained in:
parent
54baa5fab1
commit
a0d1b7dec6
@ -1,6 +1,7 @@
|
|||||||
* 0.4.14-unreleased
|
* 0.4.14-unreleased
|
||||||
- Remove web3 / eth-* module dependencies
|
- Remove web3 / eth-* module dependencies
|
||||||
- Add custom keyfile handling code and cli tool
|
- Add custom keyfile handling code and cli tool
|
||||||
|
- Add zero-length password option to keyfile cli tool
|
||||||
* 0.4.13
|
* 0.4.13
|
||||||
- Implement DictKeystore
|
- Implement DictKeystore
|
||||||
- Remove unused insert_key method in keystore interface
|
- Remove unused insert_key method in keystore interface
|
||||||
|
@ -22,6 +22,7 @@ logg = logging.getLogger()
|
|||||||
|
|
||||||
argparser = argparse.ArgumentParser()
|
argparser = argparse.ArgumentParser()
|
||||||
argparser.add_argument('-d', type=str, help='decrypt file')
|
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('-k', type=str, help='load key from file')
|
||||||
argparser.add_argument('-v', action='store_true', help='be verbose')
|
argparser.add_argument('-v', action='store_true', help='be verbose')
|
||||||
args = argparser.parse_args()
|
args = argparser.parse_args()
|
||||||
@ -43,6 +44,8 @@ def main():
|
|||||||
global pk_hex
|
global pk_hex
|
||||||
|
|
||||||
passphrase = os.environ.get('PASSPHRASE')
|
passphrase = os.environ.get('PASSPHRASE')
|
||||||
|
if args.z:
|
||||||
|
passphrase = ''
|
||||||
r = None
|
r = None
|
||||||
if mode == 'decrypt':
|
if mode == 'decrypt':
|
||||||
if passphrase == None:
|
if passphrase == None:
|
||||||
|
4
setup.py
4
setup.py
@ -33,7 +33,7 @@ f.close()
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="crypto-dev-signer",
|
name="crypto-dev-signer",
|
||||||
version="0.4.14b3",
|
version="0.4.14b4",
|
||||||
description="A signer and keystore daemon and library for cryptocurrency software development",
|
description="A signer and keystore daemon and library for cryptocurrency software development",
|
||||||
author="Louis Holbrook",
|
author="Louis Holbrook",
|
||||||
author_email="dev@holbrook.no",
|
author_email="dev@holbrook.no",
|
||||||
@ -63,5 +63,5 @@ setup(
|
|||||||
'eth-keyfile=crypto_dev_signer.runnable.keyfile:main',
|
'eth-keyfile=crypto_dev_signer.runnable.keyfile:main',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
url='https://gitlab.com/chaintools/crypto-dev-signer',
|
url='https://gitlab.com/chaintool/crypto-dev-signer',
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user