[feat] Backport/Import Bitcoin's share/rpcauth/rpcauth.pyย #3352
Closed
Description
Feature Request
Bitcoin has deprecated share/rpcuser/rpcuser.py
in favor of share/rpcauth/rpcauth.py. In particular, the latter has an improved user experience and, more importantly, uses cryptographically secure random numbers for generating passwords. The existing rpcuser.py
uses the insecure Python random
module.
Describe Preferred Solution
We should at least borrow Bitcoin's code, even if we don't deprecate the existing utility in favor of the new filename and location.