dash/share/rpcauth
Wladimir J. van der Laan 9369fde159
Merge #14742: Properly generate salt in rpcauth.py
6be7d14d243eeeaaf6b4b98c3359c3e1695f2046 Properly generate salt in rpcauth.py, update tests (Carl Dong)

Pull request description:

  Previously, when iterating over bytes of the generated salt to construct
  a hex string, only one character would be outputted when the byte is
  less than 0x10. Meaning that for a 16 byte salt, the hex string might be
  less than 32 characters and collisions would occur.

Tree-SHA512: 7038ecbbac846cd1851112396acd8a04475685f5b6f786e4e7316acba4a56cc711c275b7f52f0f2b6bc6cfdc0c0d9d39c3afeb2c0aff3a30fde516bf642fdf9f
2020-07-22 12:12:46 -05:00
..
README.md Merge #13146: rpcauth: Make it possible to provide a custom password 2020-07-22 12:12:46 -05:00
rpcauth.py Merge #14742: Properly generate salt in rpcauth.py 2020-07-22 12:12:46 -05:00

RPC Tools

RPCAuth

Create login credentials for a JSON-RPC user.

Usage:

./rpcauth.py <username>

in which case the script will generate a password. To specify a custom password do:

./rpcauth.py <username> <password>