dash/share/rpcauth/README.md
Wladimir J. van der Laan 5b38df433f
Merge #14756: Improve rpcauth.py by using argparse and getpass modules
d6cde007db9d3e6ee93bd98a9bbfdce9bfa9b15b rpcauth: Improve by using argparse and getpass modules (João Barbosa)

Pull request description:

  This PR improves argument handling in `rpcauth.py` script by using `argparse` module. Specifying `-` as password makes it prompt securely with `getpass` module which prevents leaking passwords to bash history.

Tree-SHA512: 489d66c95f66b5618cb75fd8f07ea5647281226ab9e32b03051eb43f758b9334ac19b7c82c2ed4f8c7ffbb0bee949b3d389e1564ec7a6e372f2864233bc7cb88
2020-07-22 12:12:46 -05:00

19 lines
411 B
Markdown

RPC Tools
---------------------
### [RPCAuth](/share/rpcauth) ###
```
usage: rpcauth.py [-h] username [password]
Create login credentials for a JSON-RPC user
positional arguments:
username the username for authentication
password leave empty to generate a random password or specify "-" to
prompt for password
optional arguments:
-h, --help show this help message and exit
```