mirror of
https://github.com/dashpay/dash.git
synced 2024-12-30 14:25:53 +01:00
5b38df433f
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
19 lines
411 B
Markdown
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
|
|
```
|