Zero-1729
021daedfa1
refactor: replace remaining binascii method calls
3 years ago
João Barbosa
d6cde007db
rpcauth: Improve by using argparse and getpass modules
6 years ago
Carl Dong
6be7d14d24
Properly generate salt in rpcauth.py, update tests
...
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.
6 years ago
DrahtBot
eb7daf4d60
Update copyright headers to 2018
6 years ago
Wladimir J. van der Laan
2a89b0c812
rpcauth: Make it possible to provide a custom password
...
This adds the functionality to specify a custom password to
`rpcauth.py`, as well as makes the code (IMO) easier to understand.
7 years ago
Qasim Javed
6674a75bfb
[tests] Make rpcauth.py testable and add unit tests
...
refs #12995
7 years ago
practicalswift
f020aca297
Minor Python cleanups to make flake8 pass with the new rules enabled
7 years ago
practicalswift
b95f9a61e0
tests: Remove compatibility code not needed now when we're on Python 3
7 years ago
John Newbery
bc6fdf2d15
Change all python files to use Python3
7 years ago
Akira Takizawa
595a7bab23
Increment MIT Licence copyright header year on files modified in 2017
7 years ago
Henrik Jonsson
3fdb29778a
Rename rpcuser.py to rpcauth.py
...
This script creates `rpcauth` entries for bitcoin.conf,
not the deprecated `rpcuser` entry, so this changes the name
of the script to match.
7 years ago