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