HomePhabricator

cli: add -stdinwalletpassphrase for (slightly more) secure CLI

Description

cli: add -stdinwalletpassphrase for (slightly more) secure CLI

Summary:

This PR

  • adds -stdinwalletpassphrase for use with walletpasshprase(change)
  • adds no-echo for passwords (-stdinrpcpass and above)

This is a backport of Core PR13716 [2/3]
Commit: https://github.com/bitcoin/bitcoin/pull/13716/commits/7f11fba2e3c7b1e00ffb98504cdcfc2ded9c09cf
Depends D8106

Test Plan:

src/bitcoin-cli -help
src/bitcoin-cli -stdinrpcpass getnetworkinfo
src/bitcoin-cli -stdinrpcpass -stdinwalletpassphrase walletpassphrase

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Subscribers: deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D8107

Details

Provenance
Karl-Johan Alm <kalle.alm@gmail.com>Authored on Oct 25 2020, 20:01
PiRKCommitted on Oct 25 2020, 20:02
abc-botPushed on Oct 25 2020, 20:07
Reviewer
Restricted Owners Package
Differential Revision
D8107: cli: add -stdinwalletpassphrase for (slightly more) secure CLI
Parents
rABCcf81f8136e18: rpc: fix -rpcclienttimeout 0 option
Branches
Unknown
Tags
Unknown