-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use sys.exit(...) instead of exit(...) - Changed bitrpc.py's raw_input to getpass for passwords to conceal characters during command line input.
- Loading branch information
1 parent
b3926ec
commit 4361638
Showing
3 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from jsonrpc import ServiceProxy | ||
import getpass | ||
access = ServiceProxy("http://127.0.0.1:8332") | ||
pwd = raw_input("Enter old wallet passphrase: ") | ||
pwd2 = raw_input("Enter new wallet passphrase: ") | ||
access.walletpassphrasechange(pwd, pwd2) | ||
pwd = getpass.getpass(prompt="Enter old wallet passphrase: ") | ||
pwd2 = getpass.getpass(prompt="Enter new wallet passphrase: ") | ||
access.walletpassphrasechange(pwd, pwd2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from jsonrpc import ServiceProxy | ||
import getpass | ||
access = ServiceProxy("http://127.0.0.1:8332") | ||
pwd = raw_input("Enter wallet passphrase: ") | ||
access.walletpassphrase(pwd, 60) | ||
pwd = getpass.getpass(prompt="Enter wallet passphrase: ") | ||
access.walletpassphrase(pwd, 60) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters